Updated on 2026-08-14

This commit is contained in:
Tangem 2024-05-17 18:36:24 +05:00
parent d71259aa8e
commit 96632ac507

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) {