From 86bf47a32ead80b33161d5bc5afaf78ee20f432f Mon Sep 17 00:00:00 2001 From: Zach Gollwitzer Date: Fri, 7 Mar 2025 18:02:08 -0500 Subject: [PATCH] Ensure holdings are normalized to account currency --- app/models/account/holding/portfolio_cache.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/account/holding/portfolio_cache.rb b/app/models/account/holding/portfolio_cache.rb index 6a839382..bb6035cf 100644 --- a/app/models/account/holding/portfolio_cache.rb +++ b/app/models/account/holding/portfolio_cache.rb @@ -37,7 +37,7 @@ class Account::Holding::PortfolioCache security_id: security_id, date: price.date, price: converted_amount, - currency: price.currency + currency: account.currency ) end