Updated on 2026-08-14

This commit is contained in:
Tangem 2023-10-17 20:28:43 +05:00
parent 883ff8070f
commit 93d91f0beb
2 changed files with 3 additions and 3 deletions

View file

@ -15,7 +15,7 @@ class GetMissedAddressesCryptoCurrenciesUseCase(private val currenciesRepository
operator fun invoke(userWalletId: UserWalletId): Flow<Either<GetCurrenciesError, List<CryptoCurrency>>> {
return currenciesRepository.getMissedAddressesCryptoCurrencies(userWalletId)
.map(List<CryptoCurrency>::right)
.catch { GetCurrenciesError.DataError(it).left() }
.map<List<CryptoCurrency>, Either<GetCurrenciesError, List<CryptoCurrency>>> { it.right() }
.catch { emit(GetCurrenciesError.DataError(it).left()) }
}
}

View file

@ -91,6 +91,7 @@ internal class WalletSingleCurrencyLoadedBalanceConverter(
val updatedWallet = when (status) {
is CryptoCurrencyStatus.NoQuote,
is CryptoCurrencyStatus.Loaded,
is CryptoCurrencyStatus.NoAccount,
-> {
WalletCardState.Content(
id = selectedWallet.id,
@ -116,7 +117,6 @@ internal class WalletSingleCurrencyLoadedBalanceConverter(
)
}
is CryptoCurrencyStatus.MissedDerivation,
is CryptoCurrencyStatus.NoAccount,
is CryptoCurrencyStatus.Custom,
is CryptoCurrencyStatus.Unreachable,
-> {