Base fixes and test harness
This commit is contained in:
@@ -148,7 +148,7 @@ struct DashboardView: View {
|
||||
changeText: calmModeEnabled
|
||||
? "\(viewModel.latestPortfolioChange.formattedAbsolute) (\(viewModel.latestPortfolioChange.formattedPercentage))"
|
||||
: viewModel.portfolioSummary.formattedDayChange,
|
||||
changeLabel: calmModeEnabled ? "since last update" : "today",
|
||||
changeLabel: calmModeEnabled ? "since last check-in" : "today",
|
||||
isPositive: calmModeEnabled
|
||||
? viewModel.latestPortfolioChange.absolute >= 0
|
||||
: viewModel.isDayChangePositive,
|
||||
@@ -989,7 +989,7 @@ struct PendingUpdatesCard: View {
|
||||
.foregroundColor(.secondary)
|
||||
}
|
||||
|
||||
ForEach(sources.prefix(3)) { source in
|
||||
ForEach(sources.prefix(3), id: \.objectID) { source in
|
||||
NavigationLink(destination: SourceDetailView(source: source, iapService: iapService)) {
|
||||
HStack {
|
||||
Circle()
|
||||
|
||||
Reference in New Issue
Block a user