Updated on 2026-08-14

This commit is contained in:
Tangem 2023-12-18 12:07:31 +03:00
parent 910c869cff
commit c0b13b5a82
4 changed files with 12 additions and 5 deletions

View file

@ -675,7 +675,7 @@ internal class WalletViewModel @Inject constructor(
.collectLatest {
it.onRight { coinStatus ->
uiState = stateFactory.getStateWithClosedBottomSheet()
reduxStateHolder.dispatch(
reduxStateHolder.dispatchWithMain(
action = TradeCryptoAction.New.SendToken(
userWallet = userWallet,
tokenCurrency = requireNotNull(cryptoCurrencyStatus.currency as? CryptoCurrency.Token),
@ -1163,8 +1163,8 @@ internal class WalletViewModel @Inject constructor(
)
}
private fun setupWalletConnectOnWallet(userWallet: UserWallet) {
reduxStateHolder.dispatch(
private suspend fun setupWalletConnectOnWallet(userWallet: UserWallet) {
reduxStateHolder.dispatchWithMain(
action = WalletConnectActions.New.SetupUserChains(userWallet = userWallet),
)
}