Primera build enviada

This commit is contained in:
2026-01-19 14:40:43 +01:00
parent c6be398e5a
commit b03d35194f
36 changed files with 1641 additions and 561 deletions
@@ -112,10 +112,11 @@ class MonthlyCheckInViewModel: ObservableObject {
}
private func filteredSources() -> [InvestmentSource] {
if showAllAccounts || selectedAccount == nil {
let selectedAccountId = selectedAccount?.safeId
if showAllAccounts || selectedAccountId == nil {
return sourceRepository.sources
}
return sourceRepository.sources.filter { $0.account?.id == selectedAccount?.id }
return sourceRepository.sources.filter { $0.account?.id == selectedAccountId }
}
private func filteredSnapshots(for sources: [InvestmentSource]) -> [Snapshot] {