Move error handler to AppCoordinator

This commit is contained in:
Davide 2024-12-06 10:26:27 +01:00
parent 0fd544348f
commit f8655b09af
No known key found for this signature in database
GPG Key ID: A48836171C759F5E
2 changed files with 1 additions and 1 deletions

View File

@ -98,6 +98,7 @@ public struct AppCoordinator: View, AppCoordinatorConforming, SizeClassProviding
options: modalRoute?.options(),
content: modalDestination
)
.withErrorHandler(errorHandler)
.onChange(of: interactiveManager.isPresented) {
modalRoute = $0 ? .interactiveLogin : nil
}

View File

@ -59,7 +59,6 @@ struct ProfileContainerView: View, Routable {
errorHandler: errorHandler
))
.navigationTitle(Strings.Unlocalized.appName)
.withErrorHandler(errorHandler)
}
}