diff --git a/ts/types/Contact.ts b/ts/types/Contact.ts index 159212584..2702b6929 100644 --- a/ts/types/Contact.ts +++ b/ts/types/Contact.ts @@ -85,7 +85,8 @@ export function contactSelector( }, }; } - return Object.assign({}, contact, { + return { + ...contact, avatar, number: contact.number && @@ -95,7 +96,7 @@ export function contactSelector( ourRegionCode: regionCode, }), })), - }); + }; } export function getName(contact: Contact): string | null {