From 7c92e5d084571f8b6b4fd8c190a31aea546b638d Mon Sep 17 00:00:00 2001 From: Suhail Kakar Date: Thu, 18 Apr 2024 00:32:44 +0530 Subject: [PATCH] fix: fix June method (#2136) --- packages/www/hooks/use-logged-in.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/www/hooks/use-logged-in.tsx b/packages/www/hooks/use-logged-in.tsx index fab90c8552..6c937586ce 100644 --- a/packages/www/hooks/use-logged-in.tsx +++ b/packages/www/hooks/use-logged-in.tsx @@ -28,7 +28,7 @@ export default function useLoggedIn(shouldBeLoggedIn = true) { // Check for user rather than token so redirects to /dashboard. if (shouldBeLoggedIn === false && user) { process.env.NODE_ENV === "production" && - June.identifyUser(user.id, user.email); + June?.identify(user.id, user.email); if (emailVerificationMode && user.emailValid === false) { router.replace("/verify"); } else {