feat: handle error.

This commit is contained in:
elforjani13
2021-11-08 13:20:49 +02:00
parent 4d89f1e0e0
commit 6d67d6163d
8 changed files with 56 additions and 9 deletions

View File

@@ -4,7 +4,7 @@ import { DATATYPES_LENGTH } from 'common/dataTypes';
const Schema = Yup.object().shape({
customer_name: Yup.string().required(),
customer_phone_number: Yup.number().required(),
customer_phone_number: Yup.number(),
sms_message: Yup.string().required().trim().max(DATATYPES_LENGTH.TEXT),
});