From aab571b3d80a7cabb661f3671b421fbd0f55b3f8 Mon Sep 17 00:00:00 2001 From: cyrbuzz Date: Wed, 13 Dec 2023 11:49:45 +0800 Subject: [PATCH] chore: clear useless --- src/hooks/useStudio.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/hooks/useStudio.ts b/src/hooks/useStudio.ts index df8f3a631..9185d30da 100644 --- a/src/hooks/useStudio.ts +++ b/src/hooks/useStudio.ts @@ -12,8 +12,6 @@ export function useStudioEnabled() { const [studioEnabled, setStudioEnabled] = useState(false); const checkStudioEnabled = useCallback(async () => { - setStudioEnabled(true); - return true; if (!contracts || !account) return; const studioEnabled = await contracts.queryRegistry.creatorWhitelist(account); setStudioEnabled(studioEnabled);