upd: login

This commit is contained in:
amel
2024-12-18 11:03:53 +08:00
parent 45d6245128
commit b2bfcd3503
3 changed files with 3 additions and 3 deletions

View File

@@ -20,7 +20,7 @@ function ViewLogin() {
if (isPhone == "")
return toast.error('Silakan diisi dengan lengkap')
if (isPhone.toString().length <= 11)
if (isPhone.toString().length <= 8)
return toast.error('Nomor telepon tidak valid')
try {

View File

@@ -479,7 +479,7 @@ export default function CreateMember() {
error={
touched.phone && (
listData.phone == "" ? "Nomor Telepon Tidak Boleh Kosong" :
listData.phone.length < 10 ? "Nomor Telepon Tidak Valid" : null
listData.phone.length < 9 ? "Nomor Telepon Tidak Valid" : null
)
}
/>

View File

@@ -363,7 +363,7 @@ export default function EditMember({ id }: { id: string }) {
error={
touched.phone && (
data.phone == "" ? "Nomor Telepon Tidak Boleh Kosong" :
data.phone.length < 10 ? "Nomor Telepon Tidak Valid" : null
data.phone.length < 9 ? "Nomor Telepon Tidak Valid" : null
)
}
/>