1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-06 09:20:43 +01: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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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> {