Skip to content

Commit

Permalink
Merge branch 'billing-addons-backend' into task-1005-cache-service-usage
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesrkiger committed Sep 3, 2024
2 parents e25e1bf + 050b84a commit 296c2bf
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions jsapp/js/account/accountSidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,6 @@ function AccountSidebar() {
setShowPlans(true);
}, [subscriptionStore.isInitialised]);

const showAddOnsLink = useMemo(() => {
return !subscriptionStore.planResponse.length;
}, [subscriptionStore.isInitialised]);

return (
<bem.FormSidebar m='account'>
<AccountNavLink
Expand All @@ -75,14 +71,12 @@ function AccountSidebar() {
name={t('Plans')}
to={ACCOUNT_ROUTES.PLAN}
/>
{showAddOnsLink && (
<AccountNavLink
iconName='plus'
name={t('Add-ons')}
to={ACCOUNT_ROUTES.ADD_ONS}
isNew={true}
/>
)}
<AccountNavLink
iconName='plus'
name={t('Add-ons')}
to={ACCOUNT_ROUTES.ADD_ONS}
isNew={true}
/>
</>
)}
</>
Expand Down

0 comments on commit 296c2bf

Please sign in to comment.