Updated on 2026-08-14
This commit is contained in:
parent
f821956f4d
commit
fad2d9cb08
1 changed files with 1 additions and 3 deletions
|
|
@ -850,13 +850,11 @@ internal class StakingViewModel @Inject constructor(
|
|||
)
|
||||
getCurrencyStatusUpdatesUseCase(userWalletId, cryptoCurrencyId, false)
|
||||
.conflate()
|
||||
.distinctUntilChanged()
|
||||
.distinctUntilChangedBy { it.getOrNull()?.value?.yieldBalance }
|
||||
.filter { value.currentStep == StakingStep.InitialInfo }
|
||||
.onEach { maybeStatus ->
|
||||
maybeStatus.fold(
|
||||
ifRight = { status ->
|
||||
if (status.value !is CryptoCurrencyStatus.Loaded) return@fold
|
||||
|
||||
if (!isInitialInfoAnalyticSent) {
|
||||
isInitialInfoAnalyticSent = true
|
||||
val balances = status.value.yieldBalance as? YieldBalance.Data
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue