Skip to content

armgit / maybe

Public Imported from GitHub
0

The personal finance app for everyone

fix: Round average monthly budget to two decimal places

Josh Pigford21dc4b80f39e
diff --git a/app/models/budgeting_stats.rb b/app/models/budgeting_stats.rb
index 43fbd80f..fdda0dff 100644
--- a/app/models/budgeting_stats.rb
+++ b/app/models/budgeting_stats.rb
@@ -24,6 +24,6 @@ class BudgetingStats
.from(monthly_totals, :mt)
.pick("AVG(mt.total)")
- result
+ result&.round(2)
end
end