mirror of
https://github.com/we-promise/sure.git
synced 2026-05-29 07:24:55 +00:00
fix: prevent NoMethodError in foreign_account? when account family is nil (#1376)
Co-authored-by: sentry[bot] <39604003+sentry[bot]@users.noreply.github.com>
This commit is contained in:
@@ -90,6 +90,7 @@ class Account::MarketDataImporter
|
||||
end
|
||||
|
||||
def foreign_account?
|
||||
return false if account.family.nil?
|
||||
account.currency != account.family.currency
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user