diff --git a/lib/utils/validateRequired.js b/lib/utils/validateRequired.js index a48de82f..0e677812 100644 --- a/lib/utils/validateRequired.js +++ b/lib/utils/validateRequired.js @@ -37,9 +37,9 @@ export function validateRequiredPositiveAmount(value) { } export function validatePositiveAmount(value) { - if (value !== '' || value === undefined || value === null) return undefined; + if (value === '' || value === undefined || value === null) return undefined; - return value > 0 + return Number(value) > 0 ? undefined : ; }