Skip to content

Commit

Permalink
fix: SignInViewModel DI missed argument
Browse files Browse the repository at this point in the history
  • Loading branch information
volodymyr-chekyrta committed Jan 2, 2024
1 parent 9559a79 commit 3fa653d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion OpenEdX/Router.swift
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,12 @@ public class Router: AuthorizationRouter,
let controller = UIHostingController(rootView: view)
navigationController.setViewControllers([controller], animated: true)
} else {
let view = SignInView(viewModel: Container.shared.resolve(SignInViewModel.self)!)
let view = SignInView(
viewModel: Container.shared.resolve(
SignInViewModel.self,
argument: LogistrationSourceScreen.default
)!
)
let controller = UIHostingController(rootView: view)
navigationController.setViewControllers([controller], animated: false)
}
Expand Down

0 comments on commit 3fa653d

Please sign in to comment.