Skip to content

Commit

Permalink
Fix crash in opening Swap screen
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelekol committed Nov 28, 2023
1 parent c08bd92 commit 94873ec
Showing 1 changed file with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,12 +89,14 @@ class SwapMainFragment : BaseFragment() {
val mainViewModel: SwapMainViewModel by viewModels { factory }
val allowanceViewModel: SwapAllowanceViewModel by viewModels { factory }
setContent {
SwapNavHost(
findNavController(),
mainViewModel,
allowanceViewModel,
swapEntryPointDestId
)
ComposeAppTheme {
SwapNavHost(
findNavController(),
mainViewModel,
allowanceViewModel,
swapEntryPointDestId
)
}
}
} catch (t: Throwable) {
Toast.makeText(
Expand Down

0 comments on commit 94873ec

Please sign in to comment.