From 86680d89430e51055c5dfe53a1ffa81a9552bb48 Mon Sep 17 00:00:00 2001 From: Trevor Scandalios <5877597+scandycuz@users.noreply.github.com> Date: Thu, 10 Oct 2024 18:54:53 -0700 Subject: [PATCH] restricts marketplace tab (#742) --- apps/studio/src/pages/home/library/ViewDetails.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/apps/studio/src/pages/home/library/ViewDetails.tsx b/apps/studio/src/pages/home/library/ViewDetails.tsx index bf0e8323..3664480c 100644 --- a/apps/studio/src/pages/home/library/ViewDetails.tsx +++ b/apps/studio/src/pages/home/library/ViewDetails.tsx @@ -12,6 +12,7 @@ import MintSong from "./MintSong"; import SongInfo from "./SongInfo"; import { SongRouteParams } from "./types"; import { MarketplaceTab } from "./MarketplaceTab"; +import { useGetProfileQuery } from "../../../modules/session"; import { NEWM_SUPPORT_EMAIL, isSongEditable } from "../../../common"; import { setToastMessage } from "../../../modules/ui"; import { @@ -64,6 +65,8 @@ const ViewDetails: FunctionComponent = () => { const { songId } = useParams<"songId">() as SongRouteParams; + const { data: profile } = useGetProfileQuery(); + const { data: { title, coverArtUrl, mintingStatus } = emptySong, error, @@ -80,7 +83,9 @@ const ViewDetails: FunctionComponent = () => { ].includes(mintingStatus); const isManageMarketplaceSalesEnabled = - clientConfig?.featureFlags?.manageMarketplaceSalesEnabled ?? false; + profile?.email === "sickcitycleveland@gmail.com" ?? + clientConfig?.featureFlags?.manageMarketplaceSalesEnabled ?? + false; const shouldRenderMarketplaceTab = !isClientConfigLoading &&