From 0bcb5182acc1fa4899761abab461945cd0e4a621 Mon Sep 17 00:00:00 2001 From: Bagasbanuna02 Date: Thu, 12 Dec 2024 15:08:19 +0800 Subject: [PATCH 1/2] chore(release): 1.2.26 --- CHANGELOG.md | 2 ++ package.json | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 309eb639..4cde977b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,8 @@ All notable changes to this project will be documented in this file. See [commit-and-tag-version](https://github.com/absolute-version/commit-and-tag-version) for commit guidelines. +## [1.2.26](https://github.com/bipproduction/hipmi/compare/v1.2.25...v1.2.26) (2024-12-12) + ## [1.2.25](https://github.com/bipproduction/hipmi/compare/v1.2.24...v1.2.25) (2024-12-12) ## [1.2.24](https://github.com/bipproduction/hipmi/compare/v1.2.23...v1.2.24) (2024-12-11) diff --git a/package.json b/package.json index 73e48807..5813c14a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "hipmi", - "version": "1.2.25", + "version": "1.2.26", "private": true, "prisma": { "seed": "npx tsx prisma/seed.ts --yes" From 6ea9d3bbb1b0497efaf6272d122f5465cf4e33f7 Mon Sep 17 00:00:00 2001 From: Bagasbanuna02 Date: Thu, 12 Dec 2024 15:15:01 +0800 Subject: [PATCH 2/2] Fix version 1.2.26 --- src/app_modules/auth/register/view.tsx | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/app_modules/auth/register/view.tsx b/src/app_modules/auth/register/view.tsx index a8b6f985..79d4b59a 100644 --- a/src/app_modules/auth/register/view.tsx +++ b/src/app_modules/auth/register/view.tsx @@ -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); } }