Vishnu Mohandas 4 лет назад
Родитель
Сommit
7a289fbe9a
1 измененных файлов с 4 добавлено и 1 удалено
  1. 4 1
      lib/ui/subscription_page.dart

+ 4 - 1
lib/ui/subscription_page.dart

@@ -312,7 +312,10 @@ class _SubscriptionPageState extends State<SubscriptionPage> {
     }
     for (final plan in plans.plans) {
       final productID = Platform.isAndroid ? plan.androidID : plan.iosID;
-      if (productID == null || productID.isEmpty) {
+      final hasSubscribedOverStripe =
+          _currentSubscription.productID == plan.stripeID;
+      if (!hasSubscribedOverStripe &&
+          (productID == null || productID.isEmpty)) {
         continue;
       }
       final isActive =