Updated on 2026-08-14

This commit is contained in:
Tangem 2023-10-17 12:31:46 +05:00
parent 070cc7f250
commit 49d8e8f51c

View file

@ -66,10 +66,17 @@ internal class WalletSingleCurrencyLoadedBalanceConverter(
type = getPriceChangeType(status),
),
)
is CryptoCurrencyStatus.NoAccount -> MarketPriceBlockState.Content(
currencySymbol = currencyName,
price = formatPrice(status, appCurrencyProvider()),
priceChangeConfig = PriceChangeState.Content(
valueInPercent = formatPriceChange(status),
type = getPriceChangeType(status),
),
)
is CryptoCurrencyStatus.Loading -> MarketPriceBlockState.Loading(currencyName)
is CryptoCurrencyStatus.Custom,
is CryptoCurrencyStatus.MissedDerivation,
is CryptoCurrencyStatus.NoAccount,
is CryptoCurrencyStatus.Unreachable,
-> MarketPriceBlockState.Error(currencyName)
}