Skip to content

Commit

Permalink
Ensure the value passed to ProgressBar is always 0 => 1
Browse files Browse the repository at this point in the history
  • Loading branch information
bpierre committed Sep 10, 2019
1 parent 3b20bbd commit 8c5b812
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/onboarding2/Deployment/DeploymentStepsPanel.js
Expand Up @@ -30,7 +30,10 @@ function DeploymentStepsPanel({ transactionsStatus }) {
`}
>
<ProgressBar
value={allSuccess ? 1 : pending / transactionsStatus.length}
value={Math.max(
0,
Math.min(1, allSuccess ? 1 : pending / transactionsStatus.length)
)}
/>
<div
css={`
Expand Down

0 comments on commit 8c5b812

Please sign in to comment.