From 420c4184e9ca860bb56c6ab101efbfb09776c6bc Mon Sep 17 00:00:00 2001 From: addison Date: Tue, 16 Nov 2021 12:41:53 -0500 Subject: [PATCH] [bug] Grab account from normal storage if secure storage is requested but does not exist --- common/src/services/state.service.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/common/src/services/state.service.ts b/common/src/services/state.service.ts index b009487a..05e02b8a 100644 --- a/common/src/services/state.service.ts +++ b/common/src/services/state.service.ts @@ -1243,7 +1243,8 @@ export class StateService implements StateServiceAbstraction { } const state = options?.useSecureStorage ? - await this.secureStorageService.get('state', options) : + await this.secureStorageService.get('state', options) ?? + await this.storageService.get('state', this.reconcileOptions(options, { htmlStorageLocation: HtmlStorageLocation.Local })) : await this.storageService.get('state', options); return state?.accounts[options?.userId ?? this.state.activeUserId];