Skip to content

Commit

Permalink
Fix crash during TokenBalanceFragment restore
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelekol committed Sep 26, 2023
1 parent f5bd001 commit c602ebd
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import io.horizontalsystems.bankwallet.R
import io.horizontalsystems.bankwallet.core.App
import io.horizontalsystems.bankwallet.core.BaseComposeFragment
import io.horizontalsystems.bankwallet.entities.Wallet
import io.horizontalsystems.bankwallet.modules.transactions.TransactionsModule
import io.horizontalsystems.bankwallet.modules.transactions.TransactionsViewModel
import io.horizontalsystems.bankwallet.ui.compose.ComposeAppTheme
import io.horizontalsystems.core.findNavController
Expand All @@ -25,7 +26,7 @@ class TokenBalanceFragment : BaseComposeFragment() {
return
}
val viewModel by viewModels<TokenBalanceViewModel> { TokenBalanceModule.Factory(wallet) }
val transactionsViewModel by navGraphViewModels<TransactionsViewModel>(R.id.mainFragment)
val transactionsViewModel by navGraphViewModels<TransactionsViewModel>(R.id.mainFragment) { TransactionsModule.Factory() }

ComposeAppTheme {
TokenBalanceScreen(
Expand Down

0 comments on commit c602ebd

Please sign in to comment.