Updated on 2026-08-14
This commit is contained in:
parent
c7fddb24a0
commit
504d0276f9
3 changed files with 11 additions and 11 deletions
|
|
@ -135,9 +135,8 @@ internal class TokenDetailsViewModel @Inject constructor(
|
|||
private suspend fun updateButtons(userWalletId: UserWalletId, currencyStatus: CryptoCurrencyStatus) {
|
||||
val userWallet = getUserWalletUseCase(userWalletId).getOrElse { return }
|
||||
getCryptoCurrencyActionsUseCase(
|
||||
userWalletId = userWallet.walletId,
|
||||
userWallet = userWallet,
|
||||
cryptoCurrencyStatus = currencyStatus,
|
||||
isSingleWalletWithTokens = userWallet.scanResponse.cardTypesResolver.isSingleWalletWithToken(),
|
||||
)
|
||||
.conflate()
|
||||
.distinctUntilChanged()
|
||||
|
|
|
|||
|
|
@ -920,9 +920,8 @@ internal class WalletViewModel @Inject constructor(
|
|||
val userWallet = getSelectedWallet()
|
||||
viewModelScope.launch(dispatchers.io) {
|
||||
getCryptoCurrencyActionsUseCase(
|
||||
userWalletId = userWallet.walletId,
|
||||
userWallet = userWallet,
|
||||
cryptoCurrencyStatus = cryptoCurrencyStatus,
|
||||
isSingleWalletWithTokens = userWallet.scanResponse.cardTypesResolver.isSingleWalletWithToken(),
|
||||
)
|
||||
.take(count = 1)
|
||||
.collectLatest {
|
||||
|
|
@ -1302,9 +1301,8 @@ internal class WalletViewModel @Inject constructor(
|
|||
|
||||
private suspend fun updateButtons(userWallet: UserWallet, currencyStatus: CryptoCurrencyStatus) {
|
||||
getCryptoCurrencyActionsUseCase(
|
||||
userWalletId = userWallet.walletId,
|
||||
userWallet = userWallet,
|
||||
cryptoCurrencyStatus = currencyStatus,
|
||||
isSingleWalletWithTokens = userWallet.scanResponse.cardTypesResolver.isSingleWalletWithToken(),
|
||||
)
|
||||
.conflate()
|
||||
.distinctUntilChanged()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue