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