diff options
Diffstat (limited to 'src/lib/merchant/components/Merchant.jsx')
| -rw-r--r-- | src/lib/merchant/components/Merchant.jsx | 4 |
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 = [ |
