summaryrefslogtreecommitdiff
path: root/src/lib/merchant/components/Merchant.jsx
diff options
context:
space:
mode:
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 = [