Skip to content

Commit

Permalink
Fixes #7139
Browse files Browse the repository at this point in the history
Signed-off-by: soupette <cyril.lpz@gmail.com>
  • Loading branch information
soupette committed Jul 24, 2020
1 parent bb63652 commit a9387d4
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,10 @@ const createYupSchemaAttribute = (type, validations, isCreatingEntry) => {
}

if (['number', 'integer', 'biginteger', 'float', 'decimal'].includes(type)) {
if (value === 0) {
return true;
}

return !!value;
}

Expand Down

0 comments on commit a9387d4

Please sign in to comment.