skip last name check when creating a booking (#22794)
Co-authored-by: Devanshu Sharma <devanshusharma658@gmail.com>
This commit is contained in:
1 parent
c8bea5b143
commit
96a6350143
1 file changed
+1
-6
@@ -31,12 +31,7 @@ function ValidateBookingName(validationOptions?: ValidationOptions) {
|
||||
return value.trim().length > 0;
|
||||
}
|
||||
if (typeof value === "object" && value !== null) {
|
||||
return (
|
||||
typeof value.firstName === "string" &&
|
||||
typeof value.lastName === "string" &&
|
||||
value.firstName.trim().length > 0 &&
|
||||
value.lastName.trim().length > 0
|
||||
);
|
||||
return typeof value.firstName === "string" && value.firstName.trim().length > 0;
|
||||
}
|
||||
return false;
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user