Skip to content

armgit / maybe

Public Imported from GitHub
0

The personal finance app for everyone

Ensure holdings are normalized to account currency

Zach Gollwitzer86bf47a32ead
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