diff --git a/SportsTime/Features/Home/Views/HomeView.swift b/SportsTime/Features/Home/Views/HomeView.swift index 14d24c2..e3ad8eb 100644 --- a/SportsTime/Features/Home/Views/HomeView.swift +++ b/SportsTime/Features/Home/Views/HomeView.swift @@ -411,6 +411,7 @@ struct SavedTripsListView: View { @State private var polls: [TripPoll] = [] @State private var isLoadingPolls = false + @State private var hasLoadedPolls = false @State private var showCreatePoll = false @State private var selectedPoll: TripPoll? @@ -437,6 +438,8 @@ struct SavedTripsListView: View { } .themedBackground() .task { + guard !hasLoadedPolls else { return } + hasLoadedPolls = true await loadPolls() } .refreshable { @@ -474,7 +477,7 @@ struct SavedTripsListView: View { } } - if isLoadingPolls { + if isLoadingPolls && polls.isEmpty { ProgressView() .frame(maxWidth: .infinity, alignment: .center) .padding()