Skip to content

Commit

Permalink
Show percentage done value directly without any additional calculatio…
Browse files Browse the repository at this point in the history
…n as the passed value is already the correct one
  • Loading branch information
HDinger committed Nov 24, 2023
1 parent 35f9c0b commit 2829331
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/helpers/application_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ def current_layout
def progress_bar(pcts, options = {})
pcts = Array(pcts).map(&:round)
closed = pcts[0]
done = (pcts[1] || closed) - closed
done = pcts[1] || 0
width = options[:width] || '100px;'
legend = options[:legend] || ''
total_progress = options[:hide_total_progress] ? '' : t(:total_progress)
Expand Down

0 comments on commit 2829331

Please sign in to comment.