Change conversation color assert to warning

This commit is contained in:
Fedor Indutny
2021-08-06 12:36:54 -07:00
committed by GitHub
parent 669005ace7
commit c0ab1dff11

View File

@@ -879,7 +879,7 @@ export const getContactNameColorSelector = createSelector(
);
const color = contactNameColors.get(contactId);
if (!color) {
assert(false, `No color generated for contact ${contactId}`);
window.log.warn(`No color generated for contact ${contactId}`);
return ContactNameColors[0];
}
return color;