mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-08-05 05:25:24 +02:00
FIX: correct display of percentages (#1622)
* FIX: correct display of percentages * FIX: correct display of percentages * FIX: correct display of percentages
This commit is contained in:
parent
aac9e5eca2
commit
ae9287ec9b
2 changed files with 2 additions and 2 deletions
|
@ -149,7 +149,7 @@ class Family < ApplicationRecord
|
|||
|
||||
savings << {
|
||||
date: r.date,
|
||||
value: r.rolling_income != 0 ? (r.rolling_income - r.rolling_spend) / r.rolling_income : 0.to_d
|
||||
value: r.rolling_income != 0 ? ((r.rolling_income - r.rolling_spend) / r.rolling_income) : 0.to_d
|
||||
}
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue