File tree Expand file tree Collapse file tree 2 files changed +1
-3
lines changed
Expand file tree Collapse file tree 2 files changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,6 @@ final class EventDetailsViewModel: ObservableObject {
2222 if !refresh { isLoading. toggle ( ) }
2323 do {
2424 event = try await APIService ( with: defaults) . getEvent ( by: event. id)
25- event. trainHere = event. participants. contains ( where: { $0. userID == defaults. mainUserInfo? . userID } )
2625 } catch {
2726 errorMessage = ErrorFilterService . message ( from: error)
2827 }
Original file line number Diff line number Diff line change @@ -333,8 +333,7 @@ struct APIService {
333333 func getEvent( by id: Int ) async throws -> EventResponse {
334334 try await makeResult (
335335 EventResponse . self,
336- for: Endpoint . getEvent ( id: id) . urlRequest ( with: baseUrlString) ,
337- needAuth: false
336+ for: Endpoint . getEvent ( id: id) . urlRequest ( with: baseUrlString)
338337 )
339338 }
340339
You can’t perform that action at this time.
0 commit comments