Skip to content

Commit

Permalink
Fix: key prop in HumanDescription
Browse files Browse the repository at this point in the history
  • Loading branch information
katspaugh committed Oct 26, 2023
1 parent 584eed7 commit f1d23f5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/components/transactions/HumanDescription/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,14 @@ export const TransferDescription = ({ txInfo, isSendTx }: { txInfo: Transfer; is
export const HumanDescription = ({ fragments }: RichDecodedInfo) => {
return (
<>
{fragments.map((fragment) => {
{fragments.map((fragment, index) => {
switch (fragment.type) {
case RichFragmentType.Text:
return <span>{fragment.value}</span>
return <span key={index}>{fragment.value}</span>
case RichFragmentType.Address:
return <AddressFragment fragment={fragment} />
return <AddressFragment key={index} fragment={fragment} />
case RichFragmentType.TokenValue:
return <TokenValueFragment fragment={fragment} />
return <TokenValueFragment key={index} fragment={fragment} />
}
})}
</>
Expand Down

0 comments on commit f1d23f5

Please sign in to comment.