hourglass count check

This commit is contained in:
Hafizzle 2023-09-28 14:43:54 -04:00 committed by Hafiz
parent b423fb073a
commit f5d9a59f6f

View file

@ -327,7 +327,7 @@ open class ShopFragment : BaseMainFragment<FragmentRefreshRecyclerviewBinding>()
}
Shop.TIME_TRAVELERS_SHOP -> {
formatTimeTravelersShop(shop1)
if (userViewModel.user.value?.isSubscribed == false) {
if (userViewModel.user.value?.isSubscribed == false && (hourglasses.value ?: 0.0) < 0.0) {
activity?.let { activity ->
val subscriptionBottomSheet = EventOutcomeSubscriptionBottomSheetFragment().apply {
eventType = EventOutcomeSubscriptionBottomSheetFragment.EVENT_HOURGLASS_SHOP_OPENED