Skip to content

Commit

Permalink
Show insufficient hourglasses modal if subscribed
Browse files Browse the repository at this point in the history
Show insufficient hourglasses modal if subscribed when attempting to purchase item without enough hourglasses
  • Loading branch information
Hafizzle committed Oct 3, 2023
1 parent 7730388 commit 8de7b52
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 8de7b52

Please sign in to comment.