From 028263514217162dcbfe7eceefa25e994bb7baf5 Mon Sep 17 00:00:00 2001 From: Scott Nonnenberg Date: Tue, 8 May 2018 09:57:51 -0700 Subject: [PATCH] Remove Object.assign still hanging around in typescript --- ts/types/Contact.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ts/types/Contact.ts b/ts/types/Contact.ts index 1592125846..2702b69297 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 {