Updated on 2026-08-14

This commit is contained in:
Tangem 2023-10-27 17:36:05 +03:00
parent f510c34198
commit a5cd02beff
2 changed files with 5 additions and 7 deletions

View file

@ -76,6 +76,7 @@ import kotlinx.collections.immutable.toImmutableList
import kotlinx.coroutines.delay
import kotlinx.coroutines.flow.*
import kotlinx.coroutines.launch
import kotlinx.coroutines.withContext
import java.math.BigDecimal
import javax.inject.Inject
import kotlin.properties.Delegates
@ -507,7 +508,8 @@ internal class WalletViewModel @Inject constructor(
viewModelScope.launch(dispatchers.main) {
val userWallet = state.walletsListConfig.wallets[index]
launch(dispatchers.io) {
withContext(dispatchers.io) {
selectWalletUseCase(userWallet.id)
}