Skip to content

Commit

Permalink
Avoid showing date picker if a custom range already exist
Browse files Browse the repository at this point in the history
This change applies to top performers card
  • Loading branch information
JorgeMucientes committed Feb 7, 2025
1 parent d25d767 commit 5095e05
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ class DashboardTopPerformersViewModel @AssistedInject constructor(
selectedDateRange.value?.customRange == null -> onEditCustomRangeTapped()
else -> {
parentViewModel.trackCardInteracted(DashboardWidget.Type.POPULAR_PRODUCTS.trackingIdentifier)
appPrefsWrapper.setActiveStatsTab(SelectionType.CUSTOM.name)
appPrefsWrapper.setActiveTopPerformersTab(SelectionType.CUSTOM.name)
}
}
}
Expand Down

0 comments on commit 5095e05

Please sign in to comment.