mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-08 08:39:03 +02:00
Merge pull request #10793 from overleaf/mj-split-test-cleanup
Split test clean-up GitOrigin-RevId: 7dd6178487022cbefcbc85797dacc3f3fbfa17e2
This commit is contained in:
committed by
Copybot
parent
f6c1e2738d
commit
38cc3394e3
@@ -6,8 +6,12 @@ function requiresPrimaryEmailCheck({
|
||||
lastPrimaryEmailCheck,
|
||||
signUpDate,
|
||||
}) {
|
||||
const hasExpired = date =>
|
||||
Date.now() - date.getTime() > Settings.primary_email_check_expiration
|
||||
const hasExpired = date => {
|
||||
if (!date) {
|
||||
return true
|
||||
}
|
||||
return Date.now() - date.getTime() > Settings.primary_email_check_expiration
|
||||
}
|
||||
|
||||
const primaryEmailConfirmedAt = emails.find(
|
||||
emailEntry => emailEntry.email === email
|
||||
|
||||
Reference in New Issue
Block a user