From 45de6d52117ff1ba515fcf5d599e49cde04baee0 Mon Sep 17 00:00:00 2001 From: Hafizzle Date: Thu, 28 Sep 2023 14:46:25 -0400 Subject: [PATCH] hourglass count check fix --- .../habitica/ui/fragments/inventory/shops/ShopFragment.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Habitica/src/main/java/com/habitrpg/android/habitica/ui/fragments/inventory/shops/ShopFragment.kt b/Habitica/src/main/java/com/habitrpg/android/habitica/ui/fragments/inventory/shops/ShopFragment.kt index 2ead82ccec..101b67893f 100644 --- a/Habitica/src/main/java/com/habitrpg/android/habitica/ui/fragments/inventory/shops/ShopFragment.kt +++ b/Habitica/src/main/java/com/habitrpg/android/habitica/ui/fragments/inventory/shops/ShopFragment.kt @@ -327,7 +327,7 @@ open class ShopFragment : BaseMainFragment() } Shop.TIME_TRAVELERS_SHOP -> { formatTimeTravelersShop(shop1) - if (userViewModel.user.value?.isSubscribed == false && (hourglasses.value ?: 0.0) < 0.0) { + 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