mirror of
https://github.com/bitwarden/jslib
synced 2025-12-06 00:03:29 +00:00
Add null check to electronStorageService.Save (#461)
* Add default value for ForcePasswordReset * Add null check to electronStorageService instead * Add default value to ForcePasswordReset * Update electron/src/services/electronStorage.service.ts * Fix indention issue from GH suggestion Co-authored-by: Oscar Hinton <oscar@oscarhinton.com>
This commit is contained in:
@@ -46,6 +46,9 @@ export class ElectronStorageService implements StorageService {
|
||||
}
|
||||
|
||||
save(key: string, obj: any): Promise<any> {
|
||||
if (obj == null) {
|
||||
return Promise.resolve();
|
||||
}
|
||||
if (obj instanceof Set) {
|
||||
obj = Array.from(obj);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user