From ec9559520bb536c8caca55d3110801adb92eed71 Mon Sep 17 00:00:00 2001 From: Thomas Rittson <31796059+eliykat@users.noreply.github.com> Date: Fri, 4 Feb 2022 07:59:55 +1000 Subject: [PATCH] Fix bug where no passwords recorded in history (#650) --- common/src/services/passwordGeneration.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/services/passwordGeneration.service.ts b/common/src/services/passwordGeneration.service.ts index 4e5d58721a..2cc6f6d07e 100644 --- a/common/src/services/passwordGeneration.service.ts +++ b/common/src/services/passwordGeneration.service.ts @@ -348,7 +348,7 @@ export class PasswordGenerationService implements PasswordGenerationServiceAbstr return new Array(); } - 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);