Updated on 2026-08-14

This commit is contained in:
Tangem 2025-03-13 15:53:14 +03:00
parent c86e5ba2fb
commit 59de366001

View file

@ -135,9 +135,9 @@ internal class DefaultRampManager(
userWalletId: UserWalletId,
cryptoCurrency: CryptoCurrency,
): ExchangeableState {
val asset = expressServiceLoader.getInitializationStatus(userWalletId).firstOrNull()
?: return ExchangeableState.Error
return withContext(dispatchers.io) {
val asset = expressServiceLoader.getInitializationStatus(userWalletId).firstOrNull()
?: return@withContext ExchangeableState.Loading
when (asset) {
is Lce.Error -> ExchangeableState.Error
is Lce.Loading -> ExchangeableState.Loading