Updated on 2026-08-14
This commit is contained in:
commit
2d5bb7509d
1 changed files with 2 additions and 2 deletions
|
|
@ -56,7 +56,7 @@ internal class CurrenciesStatusesOperations(
|
|||
} else {
|
||||
currenciesRepository.getMultiCurrencyWalletCurrency(userWalletId, cryptoCurrencyId)
|
||||
}
|
||||
val quotes = quotesRepository.getQuoteSync(cryptoCurrencyId).right()
|
||||
val quotes = quotesRepository.getQuoteSync(cryptoCurrencyId)?.right() ?: Error.EmptyQuotes.left()
|
||||
val networkStatuses =
|
||||
networksRepository.getNetworkStatusesSync(
|
||||
userWalletId,
|
||||
|
|
@ -100,7 +100,7 @@ internal class CurrenciesStatusesOperations(
|
|||
catch = { raise(Error.DataError(it)) },
|
||||
)
|
||||
val quotes = catch(
|
||||
block = { quotesRepository.getQuoteSync(currency.id).right() },
|
||||
block = { quotesRepository.getQuoteSync(currency.id)?.right() ?: Error.EmptyQuotes.left() },
|
||||
catch = { Error.DataError(it).left() },
|
||||
)
|
||||
val networkStatus = catch(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue