diff options
author | Paul Frazee <pfrazee@gmail.com> | 2023-11-08 09:46:07 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-08 09:46:07 -0800 |
commit | 5eadadffbf5475b233da7b1463e2345ff3e3cfce (patch) | |
tree | af3dd9f05a6eab919515b7de965a1fea51ad346b /src/state/shell/reminders.ts | |
parent | 5843e212c0ebbfc6c3831929bbbaa72e1a289aba (diff) | |
download | voidsky-5eadadffbf5475b233da7b1463e2345ff3e3cfce.tar.zst |
State layer cleanup: move alt-text-required into preferences and fix a bug in reminders (#1845)
* Move alt-text-required into preferences * Fix bug: reminders now using new onboarding state
Diffstat (limited to 'src/state/shell/reminders.ts')
-rw-r--r-- | src/state/shell/reminders.ts | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/state/shell/reminders.ts b/src/state/shell/reminders.ts index d68a272ac..e7ee7a5fe 100644 --- a/src/state/shell/reminders.ts +++ b/src/state/shell/reminders.ts @@ -1,12 +1,9 @@ import * as persisted from '#/state/persisted' -import {OnboardingModel} from '../models/discovery/onboarding' import {SessionModel} from '../models/session' import {toHashCode} from 'lib/strings/helpers' +import {isOnboardingActive} from './onboarding' -export function shouldRequestEmailConfirmation( - session: SessionModel, - onboarding: OnboardingModel, -) { +export function shouldRequestEmailConfirmation(session: SessionModel) { const sess = session.currentSession if (!sess) { return false @@ -14,7 +11,7 @@ export function shouldRequestEmailConfirmation( if (sess.emailConfirmed) { return false } - if (onboarding.isActive) { + if (isOnboardingActive()) { return false } // only prompt once |