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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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