Skip to content

armgit / sure

Public Imported from GitHub
0

The personal finance app for everyone (by everyone)

Ruby

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 6a83938284..bb6035cfa5 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