Skip to content

Commit

Permalink
fix condition (humanprotocol#2606)
Browse files Browse the repository at this point in the history
  • Loading branch information
portuu3 committed Oct 7, 2024
1 parent 964fd22 commit 8c38171
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { ErrorEncryption } from '../../common/constants/errors';
const encryptionProvider: Provider = {
provide: Encryption,
useFactory: async (pgpConfigService: PGPConfigService) => {
if (!pgpConfigService.encrypt && !pgpConfigService.privateKey) {
if (!pgpConfigService.encrypt || !pgpConfigService.privateKey) {
return null;
}
const privateKey = pgpConfigService.privateKey;
Expand Down

0 comments on commit 8c38171

Please sign in to comment.