Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Eric/preferences #1873

Merged
merged 14 commits into from
Nov 12, 2023
Merged
89 changes: 0 additions & 89 deletions src/lib/labeling/const.ts

This file was deleted.

18 changes: 0 additions & 18 deletions src/lib/labeling/types.ts

This file was deleted.

2 changes: 1 addition & 1 deletion src/state/modals/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ export function Provider({children}: React.PropsWithChildren<{}>) {
const closeModal = React.useCallback(() => {
let totalActiveModals = 0
setActiveModals(activeModals => {
activeModals.pop()
activeModals = activeModals.slice(0, -1)
totalActiveModals = activeModals.length
return activeModals
})
Expand Down
2 changes: 0 additions & 2 deletions src/state/models/root-store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,6 @@ export class RootStoreModel {
this.agent = agent
applyDebugHeader(this.agent)
this.me.clear()
await this.preferences.sync()
await this.me.load()
if (!hadSession) {
await resetNavigation()
Expand Down Expand Up @@ -137,7 +136,6 @@ export class RootStoreModel {
}
try {
await this.me.updateIfNeeded()
await this.preferences.sync()
} catch (e: any) {
logger.error('Failed to fetch latest state', {error: e})
}
Expand Down
1 change: 0 additions & 1 deletion src/state/models/ui/create-account.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,6 @@ export class CreateAccountModel {
password: this.password,
inviteCode: this.inviteCode.trim(),
})
/* dont await */ this.rootStore.preferences.setBirthDate(this.birthDate)
track('Create Account')
} catch (e: any) {
onboardingDispatch({type: 'skip'}) // undo starting the onboard
Expand Down
Loading
Loading