summaryrefslogtreecommitdiff
path: root/src/lib/merchant/components/Merchant.jsx
diff options
context:
space:
mode:
authorit-fixcomart <it@fixcomart.co.id>2025-01-15 13:21:48 +0700
committerit-fixcomart <it@fixcomart.co.id>2025-01-15 13:21:48 +0700
commitb9b4eb3ed751a69c023a45e7cdca8da01ae6b1cd (patch)
tree081e67309f0b0a7795c685cf933caed23e52e296 /src/lib/merchant/components/Merchant.jsx
parent3692f937130e18cf396f5871d8a15bdd258bdd2b (diff)
<iman> update merchant
Diffstat (limited to 'src/lib/merchant/components/Merchant.jsx')
-rw-r--r--src/lib/merchant/components/Merchant.jsx4
1 files changed, 3 insertions, 1 deletions
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 = [