Skip to content

Commit

Permalink
during initial rendering, mintPubKey can be undefined, so avoid passi…
Browse files Browse the repository at this point in the history
…ng that on (#247)

Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
  • Loading branch information
SvenDowideit committed Jul 18, 2022
1 parent 2813f71 commit 1ae46b2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/renderer/components/tokens/MetaplexTokenData.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,10 @@ function MetaplexTokenDataButton(props: {
const { mintPubKey, disabled } = props;
const { status } = useAppSelector(selectValidatorNetworkState);

if (!mintPubKey) {
return <></>;
}

return (
<OverlayTrigger
trigger="click"
Expand Down

0 comments on commit 1ae46b2

Please sign in to comment.