Skip to content

Commit

Permalink
fix(common): return 100 if greater than or equal to
Browse files Browse the repository at this point in the history
Signed-off-by: Adam Setch <[email protected]>
  • Loading branch information
setchy committed Jan 28, 2024
1 parent 3f5f955 commit e6555f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/shared/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ $common.valueWithDefault = function valueWithDefault(variable, defaultValue) {
* function will return a percentage rounded to the tenth decimal place.
*/
$common.calcProgressPercent = function calcProgressPercent(total, completed) {
if (completed > total) {
if (completed >= total) {
// In something has already been completed (e.g. suppressed) and the completed value
// is greater than the total, return 100%
return 100;
Expand Down

0 comments on commit e6555f4

Please sign in to comment.