upd: login
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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
|
||||
)
|
||||
}
|
||||
/>
|
||||
|
||||
@@ -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
|
||||
)
|
||||
}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user