Attempt to fix #111 (#130)

This commit is contained in:
Max Wofford
2025-03-26 02:04:42 -04:00
committed by GitHub
parent a8d2fcd5b9
commit 1422a34f83

View File

@@ -31,6 +31,8 @@ module ApplicationHelper
hours = time.to_i / 3600
minutes = (time.to_i % 3600) / 60
return "0m" if hours.zero? && minutes.zero?
time_parts = []
time_parts << "#{hours}h" if hours.positive?
time_parts << "#{minutes}m" if minutes.positive?