Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

fix: correct display for delete sub-org button

Scott Wilsonb25f5010df0f
diff --git a/frontend/src/pages/organization/SettingsPage/components/OrgDeleteSection/OrgDeleteSection.tsx b/frontend/src/pages/organization/SettingsPage/components/OrgDeleteSection/OrgDeleteSection.tsx
index e78ad61b91..4dfe89f71f 100644
--- a/frontend/src/pages/organization/SettingsPage/components/OrgDeleteSection/OrgDeleteSection.tsx
+++ b/frontend/src/pages/organization/SettingsPage/components/OrgDeleteSection/OrgDeleteSection.tsx
@@ -55,7 +55,7 @@ export const OrgDeleteSection = () => {
onClick={() => handlePopUpOpen("deleteOrg")}
isDisabled={Boolean(!hasOrgRole(OrgMembershipRole.Admin))}
>
- {`Delete ${currentOrg?.name}`}
+ {`Delete ${currentOrg.subOrganization?.name ?? currentOrg?.name}`}
</Button>
</div>
<DeleteActionModal