Skip to content

Commit

Permalink
Check if player has any hourglasses, and if so - show sub bottomsheet
Browse files Browse the repository at this point in the history
  • Loading branch information
Hafizzle committed Sep 28, 2023
1 parent b423fb0 commit 3510034
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3510034

Please sign in to comment.