Updated on 2026-08-14

This commit is contained in:
Tangem 2024-09-25 13:27:36 +03:00
parent 06876aeb1a
commit 557012bd99
2 changed files with 4 additions and 1 deletions

View file

@ -103,7 +103,9 @@ class AppLogsStore @Inject constructor(
private fun launchWithLock(callback: () -> Unit) {
scope.launch {
mutex.withLock {
callback()
runCatching {
callback()
}.onFailure(Timber::e)
}
}
}

View file

@ -116,6 +116,7 @@ internal class CurrenciesStatusesLceOperations(
userWalletId: UserWalletId,
): LceFlow<TokenListError, List<CryptoCurrency>> {
return currenciesRepository.getMultiCurrencyWalletCurrenciesUpdatesLce(userWalletId)
.distinctUntilChanged()
.map { maybeCurrencies ->
maybeCurrencies.mapError { TokenListError.DataError(it) }
}