Skip to content

Commit

Permalink
fix: bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
ybgbob committed Nov 18, 2023
1 parent c292209 commit b3a0b5e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/resource/collection/ActionButtonGroup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,15 @@ export const ActionButtonGroup = (props: Props) => {
name: ObjectName,
});

/* not login account can't show */
/* bought collection can view every data in this collection */
/* if user only buy data can download too*/
const showDownload = useMemo(() => {
if (!address) return false;
if (isCollectionPurchasedByMe) return true;
if (isListed && isPurchasedByMe) return true;
return false;
}, [isCollectionPurchasedByMe, isListed, isPurchasedByMe]);
}, [address, isCollectionPurchasedByMe, isListed, isPurchasedByMe]);

return (
<Box>
Expand Down

0 comments on commit b3a0b5e

Please sign in to comment.