From b9b4eb3ed751a69c023a45e7cdca8da01ae6b1cd Mon Sep 17 00:00:00 2001
From: it-fixcomart <it@fixcomart.co.id>
Date: Wed, 15 Jan 2025 13:21:48 +0700
Subject: <iman> update merchant

---
 src/lib/merchant/components/Merchant.jsx | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

(limited to 'src/lib/merchant/components/Merchant.jsx')

diff --git a/src/lib/merchant/components/Merchant.jsx b/src/lib/merchant/components/Merchant.jsx
index 59f80be5..a995cb19 100644
--- a/src/lib/merchant/components/Merchant.jsx
+++ b/src/lib/merchant/components/Merchant.jsx
@@ -36,7 +36,9 @@ const Merchant = () => {
 
   const handleIsError = (value) => {
     console.log('value yang dihasilkan', value);
-    goToNextStep();
+    if (!value) {
+      goToNextStep();
+    }
     setError(value); // Memperbarui state berdasarkan isError
   };
   const stepDivs = [
-- 
cgit v1.2.3

