Skip to content

Commit

Permalink
fix crash
Browse files Browse the repository at this point in the history
  • Loading branch information
armaniferrante committed Mar 11, 2023
1 parent b8662cf commit 581636d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/recoil/src/atoms/solana/nft.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ export const solanaNftById = equalSelectorFamily<
} else {
return uriData.metadata.data.name;
}
})().replace(/\0/g, "");
})()?.replace(/\0/g, "");

const nft = {
id: nftTokenMetadata?.publicKey ?? "",
Expand All @@ -120,7 +120,7 @@ export const solanaNftById = equalSelectorFamily<
name: (
nftTokenMetadata?.account.data.name ??
(uriData ? uriData.tokenMetaUriData.name : "Unknown")
).replace(/\0/g, ""),
)?.replace(/\0/g, ""),
description: uriData ? uriData.tokenMetaUriData.description : "",
externalUrl: uriData
? externalResourceUri(
Expand Down

1 comment on commit 581636d

@vercel
Copy link

@vercel vercel bot commented on 581636d Mar 11, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.