Skip to content

Commit

Permalink
refactor(frontend): round creation progress to nearest percent
Browse files Browse the repository at this point in the history
  • Loading branch information
spwoodcock committed Mar 3, 2024
1 parent 7aeb06e commit a2aa2ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/frontend/src/components/common/ProgressBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ interface ProgressBarProps {
currentProgress?: number;
}
const ProgressBar: React.FC<ProgressBarProps> = ({ currentStep, totalSteps }) => {
const stepProgressInPercent = currentStep && totalSteps ? (currentStep / totalSteps) * 100 : 0;
const stepProgressInPercent = currentStep && totalSteps ? Math.round((currentStep / totalSteps) * 100) : 0;

return (
<>
Expand Down

0 comments on commit a2aa2ed

Please sign in to comment.