From 4624dc1eb396e6ff28427e20c81ddd626aab5ff7 Mon Sep 17 00:00:00 2001 From: Caleb Owens Date: Tue, 5 Nov 2024 16:45:54 +0100 Subject: [PATCH] typihg nsi ihard --- apps/desktop/src/lib/config/appSettings.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/desktop/src/lib/config/appSettings.ts b/apps/desktop/src/lib/config/appSettings.ts index 935955d5e..5e68450f3 100644 --- a/apps/desktop/src/lib/config/appSettings.ts +++ b/apps/desktop/src/lib/config/appSettings.ts @@ -78,7 +78,7 @@ export class AppSettings { } async storeValueWithDefault(initial: T, key: string): Promise { - const stored = this.diskStore?.get(key) as T; - return stored === null ? initial : stored; + const stored = (await this.diskStore?.get(key)) as T; + return stored === null || stored === undefined ? initial : stored; } }