Skip to content

Commit

Permalink
web(profile): update nft item key
Browse files Browse the repository at this point in the history
  • Loading branch information
junhoyeo committed Aug 27, 2022
1 parent 9f43ed4 commit 7a683d7
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ export const NFTSection: React.FC<Props> = ({ nftAssets }) => {
return (
<AssetList>
{nftAssets.length > 0 ? (
nftAssets.map((asset) => {
nftAssets.map((asset, index) => {
const isVideo =
!!asset.animation_url ||
asset.image_url?.toLowerCase()?.endsWith('.mp4') ||
false;

return (
<AssetListItem key={asset.id}>
<AssetListItem key={`${asset.id}-${index}`}>
<AssetMedia
src={
!isVideo
Expand Down

0 comments on commit 7a683d7

Please sign in to comment.