diff --git a/Habitica/src/main/java/com/habitrpg/android/habitica/ui/views/shops/PurchaseDialog.kt b/Habitica/src/main/java/com/habitrpg/android/habitica/ui/views/shops/PurchaseDialog.kt index 1c0a951a64..3ab9210c12 100644 --- a/Habitica/src/main/java/com/habitrpg/android/habitica/ui/views/shops/PurchaseDialog.kt +++ b/Habitica/src/main/java/com/habitrpg/android/habitica/ui/views/shops/PurchaseDialog.kt @@ -372,7 +372,7 @@ class PurchaseDialog( parentActivity?.let { activity -> InsufficientGemsDialog(activity, shopItem.value).show() } } "hourglasses" == shopItem.currency -> { - if ((user?.hourglassCount?.toDouble() ?: 0.0) > 0.0) { + if (user?.isSubscribed == true) { InsufficientHourglassesDialog(context).show() } else { val subscriptionBottomSheet = EventOutcomeSubscriptionBottomSheetFragment().apply {