Updated on 2026-08-14
This commit is contained in:
parent
3c866e122b
commit
25c81596f9
1 changed files with 3 additions and 3 deletions
|
|
@ -116,7 +116,6 @@ internal class EarnModel @Inject constructor(
|
|||
) { items, error, paginationStatus ->
|
||||
val hasActiveFilters = state.value.earnFilterUM.selectedTypeFilter != EarnFilterTypeUM.All ||
|
||||
state.value.earnFilterUM.selectedNetworkFilter !is EarnFilterNetworkUM.AllNetworks
|
||||
error?.let(::handleBestOpportunitiesErrorAnalytics)
|
||||
EarnListStateManager.calculateState(
|
||||
items = items,
|
||||
error = error,
|
||||
|
|
@ -128,9 +127,10 @@ internal class EarnModel @Inject constructor(
|
|||
},
|
||||
onLoadMore = { batchFlowManager.loadMore() },
|
||||
onClearFiltersClick = ::onClearFiltersClick,
|
||||
)
|
||||
}.onEach { bestOpportunitiesState ->
|
||||
) to error
|
||||
}.onEach { (bestOpportunitiesState, error) ->
|
||||
stateController.update(UpdateBestOpportunitiesStateTransformer(bestOpportunitiesState))
|
||||
error?.let(::handleBestOpportunitiesErrorAnalytics)
|
||||
}.launchIn(modelScope)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue