From 279210599bcb8e98942e81ad023a9df47ac1aef5 Mon Sep 17 00:00:00 2001 From: Thomas Ruoff Date: Tue, 21 Jul 2020 00:24:36 +0200 Subject: [PATCH] fix wizard next --- components/wizard.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) 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 && } ) }