mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-26 12:25:20 +01:00
Fix bug where no passwords recorded in history (#650)
This commit is contained in:
parent
f6ba252139
commit
ec9559520b
@ -348,7 +348,7 @@ export class PasswordGenerationService implements PasswordGenerationServiceAbstr
|
||||
return new Array<GeneratedPasswordHistory>();
|
||||
}
|
||||
|
||||
if ((await this.stateService.getDecryptedPasswordGenerationHistory()) != null) {
|
||||
if ((await this.stateService.getDecryptedPasswordGenerationHistory()) == null) {
|
||||
const encrypted = await this.stateService.getEncryptedPasswordGenerationHistory();
|
||||
const decrypted = await this.decryptHistory(encrypted);
|
||||
await this.stateService.setDecryptedPasswordGenerationHistory(decrypted);
|
||||
|
Loading…
Reference in New Issue
Block a user