Skip to content

Commit

Permalink
fix: NFTs feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
andy-haynes committed Mar 4, 2022
1 parent 69c4118 commit 54bcd40
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/frontend/src/components/wallet/NFTs.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,14 +57,14 @@ const StyledContainer = styled.div`
}
`;

const NFTs = ({ tokens, accountId }) => {
const NFTs = ({ tokens }) => {
if (tokens.length) {
return (
<StyledContainer>
{tokens.filter((tokenDetails) => tokenDetails.ownedTokensMetadata && tokenDetails.ownedTokensMetadata.length).map((tokenDetails) => (
<NFTBox
key={tokenDetails.contractName}
tokenDetails={Object.assign({ ownerId: accountId }, tokenDetails)}
tokenDetails={tokenDetails}
/>
))}
</StyledContainer>
Expand Down
2 changes: 1 addition & 1 deletion packages/frontend/src/components/wallet/Wallet.js
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ export function Wallet({ tab, setTab }) {
</div>
</div>
{tab === 'collectibles'
? <NFTs tokens={sortedNFTs} accountId={accountId} />
? <NFTs tokens={sortedNFTs} />
: <FungibleTokens
balance={balance}
tokensLoader={tokensLoader}
Expand Down

0 comments on commit 54bcd40

Please sign in to comment.