Skip to content

Commit

Permalink
Gallery useTabs: Removing useless method
Browse files Browse the repository at this point in the history
  • Loading branch information
hide-on-bush-x committed Aug 23, 2023
1 parent f30f389 commit 56535d3
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions src/refactor/ui/components/modals/gallery/useTabs.tsx
Expand Up @@ -13,20 +13,7 @@ export const handleRender = (SBT: {
tokenId: BigNumber;
tokenUri: string;
}) => {
const getMetadata = (): GalleryMetadata => {
if (SBT.metadata) {
return SBT.metadata;
}
if (SBT.tokenId) {
return {
image: SBT.tokenUri,
};
}

return {};
};

const metadata = getMetadata();
const metadata = SBT?.metadata ?? SBT?.tokenUri ?? {};

return (
<GalleryItem
Expand Down

0 comments on commit 56535d3

Please sign in to comment.