Skip to content

Commit

Permalink
Fixes minor state update issue -- #18
Browse files Browse the repository at this point in the history
  • Loading branch information
chrtannus committed Jun 11, 2024
1 parent f0eae9c commit 571a906
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/wizards/GeneWizard.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export function GeneWizard({ step, setTotalSteps, setTitle, onCanContinue, onSub
const orgRef = useRef()

useEffect(() => {
if (step >= 0 && step < stepsDef.length - 1) {
if (step >= 0 && step < stepsDef.length) {
setTotalSteps(stepsDef.length)
setTitle(stepsDef[step].title)
}
Expand Down

0 comments on commit 571a906

Please sign in to comment.