Skip to content

Commit

Permalink
#46 Fix comments
Browse files Browse the repository at this point in the history
  • Loading branch information
wouter-adriaens committed Jul 11, 2023
1 parent 8963bd3 commit 30ac4a5
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions src/components/dumb/OeWizard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -74,17 +74,13 @@ const previousStep = () => {
};
const nextStep = async () => {
if (currentStep.value < totalSteps.value - 1) {
if (await props.steps[currentStep.value].validate()) {
currentStep.value++;
}
if (currentStep.value < totalSteps.value - 1 && (await props.steps[currentStep.value].validate())) {
currentStep.value++;
}
};
const goToStep = async (step: number) => {
if (props.allowBarNavigation && (await previousStepsAreValid(step))) {
currentStep.value = step;
}
if (props.allowBarNavigation && (await previousStepsAreValid(step))) currentStep.value = step;
};
const previousStepsAreValid = async (step: number) => {
Expand Down

0 comments on commit 30ac4a5

Please sign in to comment.