tweak
This commit is contained in:
@@ -12,9 +12,10 @@ export function useEmail() {
|
|||||||
|
|
||||||
const checkEmailConfirmed = !!serviceConfig?.checkEmailConfirmed
|
const checkEmailConfirmed = !!serviceConfig?.checkEmailConfirmed
|
||||||
|
|
||||||
|
// Date set for 11 AM PST on the 18th of November
|
||||||
const isNewEnough =
|
const isNewEnough =
|
||||||
!!profile?.createdAt &&
|
!!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 =
|
const isSelfHost =
|
||||||
currentAccount &&
|
currentAccount &&
|
||||||
@@ -24,7 +25,7 @@ export function useEmail() {
|
|||||||
const needsEmailVerification =
|
const needsEmailVerification =
|
||||||
!isSelfHost &&
|
!isSelfHost &&
|
||||||
checkEmailConfirmed &&
|
checkEmailConfirmed &&
|
||||||
!!currentAccount?.emailConfirmed &&
|
!currentAccount?.emailConfirmed &&
|
||||||
isNewEnough
|
isNewEnough
|
||||||
|
|
||||||
return {needsEmailVerification}
|
return {needsEmailVerification}
|
||||||
|
|||||||
Reference in New Issue
Block a user