Skip to content
This repository has been archived by the owner on Jun 17, 2022. It is now read-only.

Commit

Permalink
Fix bug where no passwords recorded in history (#650)
Browse files Browse the repository at this point in the history
  • Loading branch information
eliykat committed Feb 4, 2022
1 parent 7e17dd2 commit 86864b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/src/services/passwordGeneration.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 86864b9

Please sign in to comment.