next-joi
next-joi copied to clipboard
Check for falsy instead of undefined.
validationError can be null and thus, onValidationError can run even for successful validations.
Hey @sanny-io, thanks for contributing! Would you mind adding a test case for this change?
Sure, I'll try to do that this week.