Merge pull request #347 from bipproduction/amalia/18-des-24
Amalia/18 des 24
This commit is contained in:
@@ -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 });
|
||||
|
||||
@@ -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