From 172392ff3b3d8e68795549deef5433c0d1329c9c Mon Sep 17 00:00:00 2001 From: Robyn MacCallum Date: Wed, 12 Jan 2022 09:11:25 -0500 Subject: [PATCH] [Account Switching] Fix options dropdowns being empty (#603) * Fix dropdowns initially being empty * run prettier * Remove default nulls for locale and theme --- common/src/services/state.service.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/common/src/services/state.service.ts b/common/src/services/state.service.ts index 0f6b1c9e3ea..35dfca3f746 100644 --- a/common/src/services/state.service.ts +++ b/common/src/services/state.service.ts @@ -355,8 +355,12 @@ export class StateService async getClearClipboard(options?: StorageOptions): Promise { return ( - await this.getAccount(this.reconcileOptions(options, await this.defaultOnDiskLocalOptions())) - )?.settings?.clearClipboard; + ( + await this.getAccount( + this.reconcileOptions(options, await this.defaultOnDiskLocalOptions()) + ) + )?.settings?.clearClipboard ?? null + ); } async setClearClipboard(value: number, options?: StorageOptions): Promise {