Skip to content

Commit

Permalink
Add key to remove warning about unique key on each member of map
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxStalker committed Jul 12, 2019
1 parent feb9349 commit 99215e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/SimpleBalance.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export default ({ mainAmount, otherAmounts, currencyDisplay }) => {
<>
<StyledBalance>
{parts.map(({ type, value }) => (
<Text.span className={type}>{value}</Text.span>
<Text.span className={type} key={type}>{value}</Text.span>
))}
{otherAssetsTotal > 0 && (
<Text className="otherAssets" italic fontSize={1} textAlign="center">
Expand Down

0 comments on commit 99215e0

Please sign in to comment.