From cfd4b80f91c16f011ffa38723fe1ea7083b26208 Mon Sep 17 00:00:00 2001 From: "Yeyang (Justin) Sun" Date: Mon, 19 Feb 2024 00:25:28 +1030 Subject: [PATCH] fix(header): revert revert (#72) --- src/components/Header.tsx | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/components/Header.tsx b/src/components/Header.tsx index ad7ffcd5..ea3e8824 100644 --- a/src/components/Header.tsx +++ b/src/components/Header.tsx @@ -28,12 +28,7 @@ export default function Header() { }); const checkUserPaid = useSWR<{ paid: boolean }>(['payment'], fetcher.get.query, { - isPaused: () => { - if (clerkUser.isLoaded && !clerkUser.isSignedIn) { - return true; - } - return !checkUserExists.data?.exists; - }, + isPaused: () => clerkUser.isLoaded && !clerkUser.isSignedIn, }); const [isScrolled, setIsScrolled] = useState(false);