Skip to content

Commit

Permalink
Fix incorrect progress calc
Browse files Browse the repository at this point in the history
  • Loading branch information
binrysearch committed Sep 10, 2024
1 parent 19447e5 commit 0eec7fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/packages/tour/components/TourTooltip.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ const ProgressBar = ({
currentStep: number;
progressBarAdditionalClass: string;
}) => {
const progress = (currentStep / steps.length) * 100;
const progress = ((currentStep + 1) / (steps.length)) * 100;

return div({ className: progressClassName }, [
div({
Expand Down

0 comments on commit 0eec7fc

Please sign in to comment.