···33import {RootStoreModel} from '../root-store'
44import {toHashCode} from 'lib/strings/helpers'
5566-const DAY = 60e3 * 24 * 1 // 1 day (ms)
77-86export class Reminders {
99- lastEmailConfirm: Date = new Date()
77+ lastEmailConfirm: Date | null = null
108119 constructor(public rootStore: RootStoreModel) {
1210 makeAutoObservable(
···4543 if (this.rootStore.onboarding.isActive) {
4644 return false
4745 }
4646+ // only prompt once
4747+ if (this.lastEmailConfirm) {
4848+ return false
4949+ }
4850 const today = new Date()
4951 // shard the users into 2 day of the week buckets
5052 // (this is to avoid a sudden influx of email updates when
···5355 if (code !== today.getDay() && code !== (today.getDay() + 1) % 7) {
5456 return false
5557 }
5656- // only ask once a day at most, but because of the bucketing
5757- // this will be more like weekly
5858- return Number(today) - Number(this.lastEmailConfirm) > DAY
5858+ return true
5959 }
60606161 setEmailConfirmationRequested() {