Merge pull request #193 from bipproduction/fix/bug/donasi

Fix/bug/donasi
This commit is contained in:
Bagasbanuna02
2024-12-12 15:15:59 +08:00
committed by GitHub
3 changed files with 10 additions and 6 deletions

View File

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