Skip to content

Commit

Permalink
Hide manage BP for individuals (#2695)
Browse files Browse the repository at this point in the history
  • Loading branch information
pixelfact committed Oct 16, 2024
1 parent 16b48b3 commit 61ae284
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions app/settings/billing/[id]/general-information/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,11 @@ function SettingsBillingPage() {
</div>
</Card>
<div className="flex flex-row items-center gap-4">
<AdminContentWrapper role={profile?.data.me?.role}>
<ManageBillingProfile actionType={actionType} />
</AdminContentWrapper>
{!isBillingProfileIndividual ? (
<AdminContentWrapper role={profile?.data.me?.role}>
<ManageBillingProfile actionType={actionType} />
</AdminContentWrapper>
) : null}

{profile?.data.me.canLeave ? <LeaveBillingProfile actionType="leave" /> : null}

Expand Down

0 comments on commit 61ae284

Please sign in to comment.