Remove Object.assign still hanging around in typescript
This commit is contained in:
parent
1918a88722
commit
0282635142
1 changed files with 3 additions and 2 deletions
|
@ -85,7 +85,8 @@ export function contactSelector(
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
return Object.assign({}, contact, {
|
return {
|
||||||
|
...contact,
|
||||||
avatar,
|
avatar,
|
||||||
number:
|
number:
|
||||||
contact.number &&
|
contact.number &&
|
||||||
|
@ -95,7 +96,7 @@ export function contactSelector(
|
||||||
ourRegionCode: regionCode,
|
ourRegionCode: regionCode,
|
||||||
}),
|
}),
|
||||||
})),
|
})),
|
||||||
});
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function getName(contact: Contact): string | null {
|
export function getName(contact: Contact): string | null {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue