fix[notEmpty]: set trim => trim()
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
exports.notEmpty = name => {
|
||||
return v => {
|
||||
if (!v || v.trim === '') {
|
||||
if (!v || v.trim() === '') {
|
||||
return `${name} is required`
|
||||
} else {
|
||||
return true
|
||||
|
Reference in New Issue
Block a user