From 5c6864389236cfa73110eae842d8d6a93380cc61 Mon Sep 17 00:00:00 2001 From: kolaente Date: Thu, 29 Sep 2022 18:31:56 +0200 Subject: [PATCH] fix: directly populate user settings with default reminder amount --- src/models/userSettings.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/models/userSettings.ts b/src/models/userSettings.ts index fbe02b73..50dbb3be 100644 --- a/src/models/userSettings.ts +++ b/src/models/userSettings.ts @@ -2,6 +2,7 @@ import AbstractModel from './abstractModel' import type {IUserSettings} from '@/modelTypes/IUserSettings' import {getCurrentLanguage} from '@/i18n' +import {getDefaultReminderAmount} from '@/helpers/defaultReminder' export default class UserSettingsModel extends AbstractModel implements IUserSettings { name = '' @@ -14,7 +15,7 @@ export default class UserSettingsModel extends AbstractModel impl timezone = '' language = getCurrentLanguage() defaultReminder = false - defaultReminderAmount = 0 + defaultReminderAmount = getDefaultReminderAmount() || 0 constructor(data: Partial = {}) { super()