1
0
Fork 0
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:
Zach Gollwitzer 2024-10-09 18:11:36 -04:00 committed by GitHub
parent a2ab217925
commit 0a303ccbd5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 12 additions and 4 deletions

View file

@ -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