diff --git a/components/wizard.js b/components/wizard.js
index 7fef7b3..79dd312 100644
--- a/components/wizard.js
+++ b/components/wizard.js
@@ -31,14 +31,12 @@ function WizardInternal() {
console.log(key, value)
}
- console.log(state)
-
- return
-
if (!isLastStep) {
dispatch({ type: ACTIONS.NEXT_STEP })
return
}
+
+ throw Error('Submit not implemented yet')
dispatch({ type: ACTIONS.SUBMIT })
}}
>
@@ -54,7 +52,7 @@ function WizardInternal() {
)}
{!isLastStep && }
- {isLastStep && }
+ {isLastStep && }
)
}