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);