Skip to content

Commit

Permalink
fix(ui): safely access currentPlan properties in OrganizationRoute co…
Browse files Browse the repository at this point in the history
…mponent (#8178)
  • Loading branch information
pavkout authored Nov 18, 2024
1 parent b9244d0 commit fe151cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/insomnia/src/ui/routes/organization.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -672,7 +672,7 @@ const OrganizationRoute = () => {
<Popover className="min-w-max border select-none text-sm border-solid border-[--hl-sm] shadow-lg bg-[--color-bg] py-2 rounded-md overflow-y-auto max-h-[85vh] focus:outline-none">
{currentPlan && Boolean(currentPlan.type) && (
<div className='flex gap-2 justify-between items-center pb-2 px-[--padding-md] border-b border-solid border-[--hl-sm] text-[--color-font] h-[--line-height-xs] w-full text-md whitespace-nowrap capitalize'>
<span>{currentPlan.planName ?? formatCurrentPlanType(currentPlan.type)} Plan</span>
<span>{currentPlan?.planName ?? formatCurrentPlanType(currentPlan.type)} Plan</span>
<UpgradeButton currentPlan={currentPlan} />
</div>
)}
Expand Down

0 comments on commit fe151cd

Please sign in to comment.