From d561174e3485c692cfb10bbe859dfc468ba7f86b Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Sun, 28 May 2023 10:16:12 +0300 Subject: [PATCH] Fixes for upgrade/change plan --- lib/ui/app/menu_drawer.dart | 2 +- lib/ui/settings/account_management.dart | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ui/app/menu_drawer.dart b/lib/ui/app/menu_drawer.dart index b99e28b98..146c6c018 100644 --- a/lib/ui/app/menu_drawer.dart +++ b/lib/ui/app/menu_drawer.dart @@ -523,7 +523,7 @@ class _MenuDrawerState extends State { ), if (state.userCompany.isOwner && state.isHosted && - !isPaidAccount(context) && + !state.isProPlan && (!isApple() || supportsInAppPurchase())) Material( child: Tooltip( diff --git a/lib/ui/settings/account_management.dart b/lib/ui/settings/account_management.dart index 003cea7f4..527b9bffc 100644 --- a/lib/ui/settings/account_management.dart +++ b/lib/ui/settings/account_management.dart @@ -364,7 +364,7 @@ class _AccountOverview extends StatelessWidget { onPressed: () => viewModel.onSetPrimaryCompany(context), ), ), - if (state.isHosted && state.isProPlan) ...[ + if (state.isHosted && state.isProPlan && !state.isTrial) ...[ if (supportsInAppPurchase()) SizedBox() else if (!supportsInAppPurchase() && state.account.hasIapPlan)