mirror of
https://github.com/bitwarden/jslib
synced 2025-12-14 23:33:36 +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:
@@ -33,7 +33,7 @@ export class ProfileResponse extends BaseResponse {
|
||||
this.key = this.getResponseProperty('Key');
|
||||
this.privateKey = this.getResponseProperty('PrivateKey');
|
||||
this.securityStamp = this.getResponseProperty('SecurityStamp');
|
||||
this.forcePasswordReset = this.getResponseProperty('ForcePasswordReset');
|
||||
this.forcePasswordReset = this.getResponseProperty('ForcePasswordReset') ?? false;
|
||||
|
||||
const organizations = this.getResponseProperty('Organizations');
|
||||
if (organizations != null) {
|
||||
|
||||
Reference in New Issue
Block a user