diff --git a/src/components/nft-details/nft-details.tsx b/src/components/nft-details/nft-details.tsx index dbcd0c58..c480c8fc 100644 --- a/src/components/nft-details/nft-details.tsx +++ b/src/components/nft-details/nft-details.tsx @@ -171,10 +171,13 @@ export const NftDetails = () => { name={nftDetails?.traits[`${key}`].name} rimValue={`${ nftDetails?.traits[`${key}`].occurance - } (${roundOffDecimalValue( - nftDetails?.traits[`${key}`].rarity, - 2, - )}%)`} + } (${ + nftDetails?.traits[`${key}`].rarity && + roundOffDecimalValue( + nftDetails?.traits[`${key}`].rarity, + 2, + ) + }%)`} /> ))}