Skip to content

Commit

Permalink
modify the key value (#146)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucy authored and embbnux committed Mar 30, 2017
1 parent 34fde95 commit 9911993
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/ContactDropdownList/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ function ContactDropdownList(props) {
name: item.name,
phoneNumber: item.phoneNumber,
})}
key={JSON.stringify(item)}
key={`${item.phoneNumber}${item.name}${item.phoneType}`}
/>
))
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/RecipientsHeader/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ function RecipientList(props) {
{
recipients.map(receiver => (
<Recipient
key={JSON.stringify(receiver)}
key={`${receiver.extensionNumber}${receiver.phoneNumber}${receiver.name}`}
name={props.getRecipientName(receiver)}
onClick={
() => props.setDefaultRecipient(
Expand Down

0 comments on commit 9911993

Please sign in to comment.