Skip to content

Commit

Permalink
tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
haileyok committed Nov 16, 2024
1 parent c0fb524 commit 4c49c0c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/lib/hooks/useEmail.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,10 @@ export function useEmail() {

const checkEmailConfirmed = !!serviceConfig?.checkEmailConfirmed

// Date set for 11 AM PST on the 18th of November
const isNewEnough =
!!profile?.createdAt &&
Date.parse(profile.createdAt) >= Date.parse('2024-11-16T02:00:00.000Z')
Date.parse(profile.createdAt) >= Date.parse('2024-11-18T02:19:00.000Z')

const isSelfHost =
currentAccount &&
Expand All @@ -24,7 +25,7 @@ export function useEmail() {
const needsEmailVerification =
!isSelfHost &&
checkEmailConfirmed &&
!!currentAccount?.emailConfirmed &&
!currentAccount?.emailConfirmed &&
isNewEnough

return {needsEmailVerification}
Expand Down

0 comments on commit 4c49c0c

Please sign in to comment.