Skip to content

Commit 9911993

Browse files
Lucyembbnux
authored andcommitted
modify the key value (#146)
1 parent 34fde95 commit 9911993

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/components/ContactDropdownList/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ function ContactDropdownList(props) {
7070
name: item.name,
7171
phoneNumber: item.phoneNumber,
7272
})}
73-
key={JSON.stringify(item)}
73+
key={`${item.phoneNumber}${item.name}${item.phoneType}`}
7474
/>
7575
))
7676
}

src/components/RecipientsHeader/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ function RecipientList(props) {
2626
{
2727
recipients.map(receiver => (
2828
<Recipient
29-
key={JSON.stringify(receiver)}
29+
key={`${receiver.extensionNumber}${receiver.phoneNumber}${receiver.name}`}
3030
name={props.getRecipientName(receiver)}
3131
onClick={
3232
() => props.setDefaultRecipient(

0 commit comments

Comments
 (0)