Skip to content

Commit

Permalink
fix handleStepClick
Browse files Browse the repository at this point in the history
  • Loading branch information
SimeJadrijev committed Jan 30, 2025
1 parent 4ee1ea7 commit 05d94fb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/app/src/components/ProgressBar/ProgressBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ export const ProgressBar = ({
};

const handleStepClick = (clickedStep: number) => {
const isGoingForward = clickedStep <= currentStep;
const isGoingBackwards = clickedStep === currentStep + 1;
const isGoingBackwards = clickedStep <= currentStep;
const isGoingForward = clickedStep === currentStep + 1;

if (isGoingBackwards) {
setCurrentStep(clickedStep);
Expand Down

0 comments on commit 05d94fb

Please sign in to comment.