Browse Source

Break on cancellation

Vishnu Mohandas 4 years ago
parent
commit
6ace5f1b38
1 changed files with 2 additions and 0 deletions
  1. 2 0
      lib/ui/subscription_page.dart

+ 2 - 0
lib/ui/subscription_page.dart

@@ -108,6 +108,8 @@ class _SubscriptionPageState extends State<SubscriptionPage> {
         } else if (Platform.isIOS && purchase.pendingCompletePurchase) {
           await InAppPurchaseConnection.instance.completePurchase(purchase);
           await _dialog.hide();
+        } else if (purchase.status == PurchaseStatus.error) {
+          await _dialog.hide();
         }
       }
     });