diff --git a/src/pages/OrganizationDetailPage/OrganizationCard.js b/src/pages/OrganizationDetailPage/OrganizationCard.js index f343d03..1e6e129 100644 --- a/src/pages/OrganizationDetailPage/OrganizationCard.js +++ b/src/pages/OrganizationDetailPage/OrganizationCard.js @@ -33,7 +33,7 @@ const OrganizationCard = ({ userData, loadDataFun, id }) => { addressLine3: yup.string().max(255, "length must <= 255"), fax_countryCode: yup.string().min(3, '請輸入國際區號').nullable(), tel_countryCode: yup.string().min(3, '請輸入國際區號'), - phoneNumber: yup.string().min(8).required('請輸入聯絡電話'), + phoneNumber: yup.string().min(8,'請輸入有效聯絡電話').required('請輸入聯絡電話'), faxNumber: yup.string().min(8, '請輸入8位數字').nullable(), brExpiryDate: yup.string().min(8).required('請輸入商業登記證有效日期'), brNo: yup.string().min(8, '請輸入有效商業登記證號碼').max(8, '請輸入有效商業登記證號碼').required('請輸入商業登記證號碼'), diff --git a/src/pages/authentication/auth-forms/AuthLoginCustom.js b/src/pages/authentication/auth-forms/AuthLoginCustom.js index a4c56ff..d2f9f6a 100644 --- a/src/pages/authentication/auth-forms/AuthLoginCustom.js +++ b/src/pages/authentication/auth-forms/AuthLoginCustom.js @@ -184,7 +184,7 @@ const AuthLoginCustom = () => { error={Boolean(formik.touched.username && formik.errors.username)} onBlur={formik.handleBlur} inputProps={{ - maxLength: 20, + maxLength: 50, onKeyDown: (e) => { if (e.key === 'Enter') { e.preventDefault();