1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-12 06:13:38 +00:00

[Account Switching] Fix options dropdowns being empty (#603)

* Fix dropdowns initially being empty

* run prettier

* Remove default nulls for locale and theme
This commit is contained in:
Robyn MacCallum
2022-01-12 09:11:25 -05:00
committed by GitHub
parent 2341b1907a
commit 172392ff3b

View File

@@ -355,8 +355,12 @@ export class StateService<TAccount extends Account = Account>
async getClearClipboard(options?: StorageOptions): Promise<number> {
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<void> {