Verify email reminders (#4510)
* Clarify intent * Increase email reminder period to once per day * Fallback * Snooze immediately after account creation, prevent showing right after signup * Fix e2e test exports * Remove redundant check * Better simple date generation * Replace in DateField * Use non-string comparison * Revert change to unrelated code * Also parse * Remove side effect
This commit is contained in:
parent
853c32b4d8
commit
32b4063185
5 changed files with 53 additions and 27 deletions
|
@ -19,3 +19,14 @@ export function getAge(birthDate: Date): number {
|
|||
}
|
||||
return age
|
||||
}
|
||||
|
||||
/**
|
||||
* Compares two dates by year, month, and day only
|
||||
*/
|
||||
export function simpleAreDatesEqual(a: Date, b: Date): boolean {
|
||||
return (
|
||||
a.getFullYear() === b.getFullYear() &&
|
||||
a.getMonth() === b.getMonth() &&
|
||||
a.getDate() === b.getDate()
|
||||
)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue