Skip to content

Commit

Permalink
fix: duplicate keys error
Browse files Browse the repository at this point in the history
  • Loading branch information
alter-eggo committed Jan 11, 2024
1 parent 2418a1c commit 77dc018
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import type { AllTransferableCryptoAssetBalances } from '@shared/models/crypto-asset-balance.model';
import { StacksFungibleTokenAsset } from '@shared/models/crypto-asset.model';

import { CryptoAssetListItem } from './crypto-asset-list-item';
import { CryptoAssetListLayout } from './crypto-asset-list.layout';
Expand All @@ -14,7 +15,10 @@ export function CryptoAssetList({ cryptoAssetBalances, onItemClick }: CryptoAsse
<CryptoAssetListItem
onClick={() => onItemClick(cryptoAssetBalance)}
assetBalance={cryptoAssetBalance}
key={cryptoAssetBalance.asset.name}
key={
cryptoAssetBalance.asset.name ??
(cryptoAssetBalance.asset as StacksFungibleTokenAsset).contractAssetName
}
/>
))}
</CryptoAssetListLayout>
Expand Down

0 comments on commit 77dc018

Please sign in to comment.