Skip to content

Commit

Permalink
let to encrypt empty strings
Browse files Browse the repository at this point in the history
  • Loading branch information
andreo-k committed Oct 5, 2020
1 parent 1f4ba9b commit 108170e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/transformer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export class EncryptionTransformer implements ValueTransformer {
}

public to(value?: string | null): string | undefined {
if (!value) {
if (value === null || value === undefined) {
return;
}

Expand Down

0 comments on commit 108170e

Please sign in to comment.