Updated on 2026-08-14
This commit is contained in:
parent
15fb5b3954
commit
ff1ac5d0e7
6 changed files with 79 additions and 37 deletions
|
|
@ -87,7 +87,7 @@ internal class AddCustomTokenViewModel @Inject constructor(
|
|||
currentCryptoCurrencies = getSelectedWalletSyncUseCase().fold(
|
||||
ifLeft = { emptyList() },
|
||||
ifRight = { selectedWallet ->
|
||||
getCurrenciesUseCase(selectedWallet.walletId).fold(
|
||||
getCurrenciesUseCase.getSync(selectedWallet.walletId).fold(
|
||||
ifLeft = { emptyList() },
|
||||
ifRight = { it },
|
||||
)
|
||||
|
|
|
|||
|
|
@ -49,7 +49,11 @@ internal class TokensListMigration(
|
|||
is Either.Right -> {
|
||||
currentUserWallet = selectedWalletEither.value
|
||||
|
||||
when (val currenciesEither = getCurrenciesUseCase(userWalletId = selectedWalletEither.value.walletId)) {
|
||||
when (
|
||||
val currenciesEither = getCurrenciesUseCase.getSync(
|
||||
userWalletId = selectedWalletEither.value.walletId,
|
||||
)
|
||||
) {
|
||||
is Either.Left -> {
|
||||
Timber.e(currenciesEither.value.toString())
|
||||
TokensListCryptoCurrencies(coins = emptyList(), tokens = emptyList())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue