From ad3038d8902245ba0ec4122dc9795cda3906ba0e Mon Sep 17 00:00:00 2001
From: it-fixcomart <it@fixcomart.co.id>
Date: Mon, 26 Aug 2024 10:52:10 +0700
Subject: <iman> update new register handling validation

---
 src-migrate/modules/register/components/RegistrasiBisnis.tsx | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

(limited to 'src-migrate/modules/register/components/RegistrasiBisnis.tsx')

diff --git a/src-migrate/modules/register/components/RegistrasiBisnis.tsx b/src-migrate/modules/register/components/RegistrasiBisnis.tsx
index b8ea5fff..c158e2f4 100644
--- a/src-migrate/modules/register/components/RegistrasiBisnis.tsx
+++ b/src-migrate/modules/register/components/RegistrasiBisnis.tsx
@@ -58,19 +58,22 @@ const RegistrasiBisnis = () => {
       setIsIndividuRequired(true);
       setIsPKP(true);
     } else {
+      validate();
       setIsPKP(false);
       setIsIndividuRequired(false); // Hide and make optional the Individu form
       setIsPKP(false);
     }
   };
-
+  
   const handleChangeBisnis = (value: string) => {
     setSelectedValueBisnis(value);
     console.log('value',value)
     if (value === "true") {
+      validate();
       updateForm('is_terdaftar','true')
       setIsTerdaftar(true);
     } else {
+      validate();
       updateForm('is_terdaftar','false')
       setIsTerdaftar(false);
     }
-- 
cgit v1.2.3

