From 5d200857b438442a7e40e2df8213161027d9ad79 Mon Sep 17 00:00:00 2001 From: jsun969 Date: Mon, 19 Feb 2024 00:23:13 +1030 Subject: [PATCH] fix(header): revert revert --- 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);