From 67e6963c4203f3075b67659da5a13f209cff0ec2 Mon Sep 17 00:00:00 2001 From: Wang Haoyang Date: Fri, 1 Nov 2024 05:59:48 +0800 Subject: [PATCH] Fix even more eslint errors --- frontend/app/(authenticated)/verify-email/page.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/frontend/app/(authenticated)/verify-email/page.tsx b/frontend/app/(authenticated)/verify-email/page.tsx index d30ebaf5..4484b503 100644 --- a/frontend/app/(authenticated)/verify-email/page.tsx +++ b/frontend/app/(authenticated)/verify-email/page.tsx @@ -18,10 +18,10 @@ import { LoadingSpinner } from "@/components/ui/loading-spinner"; import { useUserStore } from "@/store/user/user-store-provider"; import { UNVERIFIED_TIER_ID } from "@/types/billing"; -export const VERIFY_SUCCESS_DELAY = 1; -export const VERIFY_ERROR_DELAY = 5; - export const VerifyEmail = () => { + const VERIFY_SUCCESS_DELAY = 1; + const VERIFY_ERROR_DELAY = 5; + const user = useUserStore((store) => store.user); const router = useRouter(); const [isLoading, setIsLoading] = useState(true); @@ -122,7 +122,7 @@ export const VerifyEmail = () => { clearTimeout(timeout); } }; - }, [code, user]); + }, [code, isUserUnverified, redirectAfterVerify]); return (