Skip to content

Commit

Permalink
Make sure surveyVC is created on the main thread (#2084)
Browse files Browse the repository at this point in the history
  • Loading branch information
ifosli authored Jun 21, 2024
1 parent bd21b26 commit d02fc1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Kickstarter-iOS/AppDelegateViewModel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -588,7 +588,6 @@ public final class AppDelegateViewModel: AppDelegateViewModelType, AppDelegateVi
.switchMap { surveyResponseId in
AppEnvironment.current.apiService.fetchSurveyResponse(surveyResponseId: surveyResponseId)
.demoteErrors()
.observeForUI()
.map { surveyResponse -> String in
surveyResponse.urls.web.survey
}
Expand All @@ -604,6 +603,7 @@ public final class AppDelegateViewModel: AppDelegateViewModelType, AppDelegateVi
.skipNil()

let surveyResponseLink = Signal.merge(surveyUrlFromProjectLink, surveyUrlFromUserLink)
.observeForUI()
.map { url -> [UIViewController] in
[SurveyResponseViewController.configuredWith(surveyUrl: url)]
}
Expand Down

0 comments on commit d02fc1f

Please sign in to comment.