Fixes for upgrade/change plan

This commit is contained in:
Hillel Coren 2023-05-28 10:16:12 +03:00
parent b08f661a55
commit d561174e34
2 changed files with 2 additions and 2 deletions

View File

@ -523,7 +523,7 @@ class _MenuDrawerState extends State<MenuDrawer> {
), ),
if (state.userCompany.isOwner && if (state.userCompany.isOwner &&
state.isHosted && state.isHosted &&
!isPaidAccount(context) && !state.isProPlan &&
(!isApple() || supportsInAppPurchase())) (!isApple() || supportsInAppPurchase()))
Material( Material(
child: Tooltip( child: Tooltip(

View File

@ -364,7 +364,7 @@ class _AccountOverview extends StatelessWidget {
onPressed: () => viewModel.onSetPrimaryCompany(context), onPressed: () => viewModel.onSetPrimaryCompany(context),
), ),
), ),
if (state.isHosted && state.isProPlan) ...[ if (state.isHosted && state.isProPlan && !state.isTrial) ...[
if (supportsInAppPurchase()) if (supportsInAppPurchase())
SizedBox() SizedBox()
else if (!supportsInAppPurchase() && state.account.hasIapPlan) else if (!supportsInAppPurchase() && state.account.hasIapPlan)