diff --git a/frontend/src/pages/LostForm.js b/frontend/src/pages/LostForm.js index 46baeb4..340d0f6 100644 --- a/frontend/src/pages/LostForm.js +++ b/frontend/src/pages/LostForm.js @@ -43,8 +43,8 @@ const validate = (values) => { if (!values.phone) { errors.phone = "Required"; - } else if (values.phone.length > 10) { - errors.phone = "Too Long!"; + } else if (values.phone.length !== 14) { + errors.phone = "Invalid number"; } if (!values.email) {