From 49d8e8f51c24e1114d6e373d6138cc47498bfc1b Mon Sep 17 00:00:00 2001 From: Tangem Date: Tue, 17 Oct 2023 12:31:46 +0500 Subject: [PATCH] Updated on 2026-08-14 --- .../WalletSingleCurrencyLoadedBalanceConverter.kt | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/features/wallet/impl/src/main/java/com/tangem/feature/wallet/presentation/wallet/state/factory/WalletSingleCurrencyLoadedBalanceConverter.kt b/features/wallet/impl/src/main/java/com/tangem/feature/wallet/presentation/wallet/state/factory/WalletSingleCurrencyLoadedBalanceConverter.kt index ce1183cb23..e33c3dd270 100644 --- a/features/wallet/impl/src/main/java/com/tangem/feature/wallet/presentation/wallet/state/factory/WalletSingleCurrencyLoadedBalanceConverter.kt +++ b/features/wallet/impl/src/main/java/com/tangem/feature/wallet/presentation/wallet/state/factory/WalletSingleCurrencyLoadedBalanceConverter.kt @@ -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) }