diff --git a/src/lib/numbers.js b/src/lib/numbers.js index 15b741ca..0eaa18c1 100644 --- a/src/lib/numbers.js +++ b/src/lib/numbers.js @@ -36,11 +36,11 @@ export const integer: Decoder = number.refine( */ export const positiveNumber: Decoder = number .refine((n) => n >= 0, 'Number must be positive') - .transform(Math.abs); + .transform(Math.abs); // Just here to handle the -0 case /** * Accepts only non-negative (zero or positive) finite whole numbers. */ export const positiveInteger: Decoder = integer .refine((n) => n >= 0, 'Number must be positive') - .transform(Math.abs); + .transform(Math.abs); // Just here to handle the -0 case