Skip to content

Commit

Permalink
fix: fix June method (#2136)
Browse files Browse the repository at this point in the history
  • Loading branch information
suhailkakar authored Apr 17, 2024
1 parent 9ddfa24 commit 7c92e5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/www/hooks/use-logged-in.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 7c92e5d

Please sign in to comment.