Merge pull request #347 from bipproduction/amalia/18-des-24

Amalia/18 des 24
This commit is contained in:
Amalia
2024-12-18 11:05:01 +08:00
committed by GitHub
4 changed files with 4 additions and 4 deletions

View File

@@ -2,7 +2,7 @@ import { NextResponse } from "next/server";
export async function GET(request: Request) {
try {
return NextResponse.json({ success: true, version: "0.2.4", mode: "staging" }, { status: 200 });
return NextResponse.json({ success: true, version: "0.2.5", mode: "staging" }, { status: 200 });
} catch (error) {
console.error(error);
return NextResponse.json({ success: false, version: "Gagal mendapatkan version, coba lagi nanti (error: 500)", reason: (error as Error).message, }, { status: 500 });

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
)
}
/>