From 90a15ceddbb98b42c6def7731b93427230655f5f Mon Sep 17 00:00:00 2001 From: hackerESQ Date: Mon, 14 Jul 2025 21:20:47 -0500 Subject: [PATCH] fix: set default --- app/Models/Portfolio.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/Models/Portfolio.php b/app/Models/Portfolio.php index 6a6dc9d..087a290 100644 --- a/app/Models/Portfolio.php +++ b/app/Models/Portfolio.php @@ -153,6 +153,7 @@ class Portfolio extends Model $total_performance = []; // get unique currencies for holdings + $currency_rates = []; foreach ($holdings->groupBy('market_data.currency')->keys() as $currency) { $currency_rates[$currency] = CurrencyRate::timeSeriesRates($currency, $holdings->min('first_transaction_date'), now()); }