Fix version 1.2.26

This commit is contained in:
2024-12-12 15:15:01 +08:00
parent 0bcb5182ac
commit 6ea9d3bbb1

View File

@@ -64,11 +64,6 @@ export default function Register() {
const result = await res.json(); const result = await res.json();
if (res.status === 400) {
setLoading(false);
ComponentGlobal_NotifikasiPeringatan(result.message);
}
if (res.status === 200) { if (res.status === 200) {
localStorage.removeItem("hipmi_auth_code_id"); localStorage.removeItem("hipmi_auth_code_id");
ComponentGlobal_NotifikasiBerhasil(result.message); ComponentGlobal_NotifikasiBerhasil(result.message);
@@ -78,8 +73,15 @@ export default function Register() {
nomor: data.nomor, nomor: data.nomor,
}); });
} }
if (res.status === 400) {
ComponentGlobal_NotifikasiPeringatan(result.message);
return;
}
} catch (error) { } catch (error) {
console.log(error); console.log(error);
} finally {
setLoading(false);
} }
} }