1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-08-02 20:15:22 +02:00

Fix group trend color (#1277)

This commit is contained in:
Zach Gollwitzer 2024-10-09 18:20:45 -04:00 committed by GitHub
parent 0a303ccbd5
commit ff5408c131
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -30,9 +30,11 @@
end
end
first_child = children.first
summed_series = summed_by_date.map { |date, value| { date: date, value: value } }
TimeSeries.new(summed_series)
TimeSeries.new(summed_series, favorable_direction: first_child&.series&.favorable_direction || "up")
end
def series=(series)