Skip to content

Commit cb6bea3

Browse files
fix: toLowerCase, toUpperCase decorators (#321)
Co-authored-by: Lam Ngoc Khuong <[email protected]>
1 parent b6a5780 commit cb6bea3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/decorators/transform.decorators.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export function ToLowerCase(): PropertyDecorator {
5050
(params) => {
5151
const value = params.value;
5252

53-
if (!value) {
53+
if (value === null || value === undefined) {
5454
return;
5555
}
5656

@@ -71,7 +71,7 @@ export function ToUpperCase(): PropertyDecorator {
7171
(params) => {
7272
const value = params.value;
7373

74-
if (!value) {
74+
if (value === null || value === undefined) {
7575
return;
7676
}
7777

0 commit comments

Comments
 (0)