Updated on 2026-08-14

This commit is contained in:
Tangem 2024-05-17 19:59:59 +05:00
commit 9dd02fcc68
2 changed files with 4 additions and 4 deletions

View file

@ -409,8 +409,8 @@ internal class SendViewModel @Inject constructor(
.orEmpty()
}.onSuccess { result ->
combine(*result.toTypedArray()) { it }
.onEach {
userWallets = it.filterNotNull().toList()
.onEach { wallets ->
userWallets = wallets.filter { it.address.isNotBlank() }.toList()
uiState = stateFactory.onLoadedWalletsList(wallets = userWallets)
}
.flowOn(dispatchers.main)
@ -421,7 +421,7 @@ internal class SendViewModel @Inject constructor(
}
}
private suspend fun List<UserWallet>.toAvailableWallets(): List<Flow<AvailableWallet?>> =
private suspend fun List<UserWallet>.toAvailableWallets(): List<Flow<AvailableWallet>> =
filterNot { it.walletId == userWalletId || it.isLocked }
.mapNotNull { wallet ->
val status = if (!wallet.isMultiCurrency) {

View file

@ -86,7 +86,7 @@ markdown = "0.7.2"
# endregion Other libraries
# region Tangem
tangemBlockchainSdk = "release-app_5.10-632"
tangemBlockchainSdk = "release-app_5.10-636"
#tangemBlockchainSdk = "0.0.1" # Keep it! - used for local builds
tangemCardSdk = "release-app_5.10-353"
#tangemCardSdk = "0.0.1" # Keep it! - used for local builds ^