mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-07-19 05:09:38 +02:00
Fix currency formatting for 0 values (#1276)
* Fix currency formatting for 0 values * Fix loan payment calculation for zero interest rate
This commit is contained in:
parent
a2ab217925
commit
0a303ccbd5
3 changed files with 12 additions and 4 deletions
|
@ -26,7 +26,7 @@ class PagesController < ApplicationController
|
|||
|
||||
# TODO: Placeholders for trendlines
|
||||
placeholder_series_data = 10.times.map do |i|
|
||||
{ date: Date.current - i.days, value: Money.new(0) }
|
||||
{ date: Date.current - i.days, value: Money.new(0, Current.family.currency) }
|
||||
end
|
||||
@investing_series = TimeSeries.new(placeholder_series_data)
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue