Updated on 2026-08-14

This commit is contained in:
Tangem 2025-03-06 21:32:04 +04:00
parent 6901522cf7
commit a61cb65789
13 changed files with 89 additions and 62 deletions

View file

@ -78,7 +78,7 @@ internal class GetSingleWalletWarningsFactory @Inject constructor(
element = WalletNotification.UsedOutdatedData,
condition = maybePrimaryCurrencyStatus.fold(
ifLeft = { false },
ifRight = { it.value.source == StatusSource.ONLY_CACHE },
ifRight = { it.value.sources.total == StatusSource.ONLY_CACHE },
),
)
}

View file

@ -68,7 +68,7 @@ internal class SingleWalletCardStateConverter(
balance = formatFiatAmount(status = status, appCurrency = appCurrency),
cardCount = selectedWallet.getCardsCount(),
isZeroBalance = status.fiatAmount?.isZero(),
isBalanceFlickering = (status as? CryptoCurrencyStatus.Loaded)?.source == StatusSource.CACHE,
isBalanceFlickering = (status as? CryptoCurrencyStatus.Loaded)?.sources?.total == StatusSource.CACHE,
)
}