Updated on 2026-08-14
This commit is contained in:
parent
883ff8070f
commit
93d91f0beb
2 changed files with 3 additions and 3 deletions
|
|
@ -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()) }
|
||||
}
|
||||
}
|
||||
|
|
@ -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,
|
||||
-> {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue