Skip to content

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

improvement: reset guard

Scott Wilson91e947e7b38b
diff --git a/frontend/src/pages/organization/NoOrgPage/NoOrgPage.tsx b/frontend/src/pages/organization/NoOrgPage/NoOrgPage.tsx
index 5ae4a42174..041aa31687 100644
--- a/frontend/src/pages/organization/NoOrgPage/NoOrgPage.tsx
+++ b/frontend/src/pages/organization/NoOrgPage/NoOrgPage.tsx
@@ -38,12 +38,13 @@ export const NoOrgPage = () => {
try {
organization = await createOrg({ name: PERSONAL_ORG_NAME });
} catch {
- // Nothing was created, so let the user create an org manually.
+ // Nothing was created, so reset both guards and let the user create an org manually.
createNotification({
text: "Couldn't create your organization automatically. Please create one below.",
type: "error"
});
setFailed(true);
+ hasRun.current = false;
sessionStorage.removeItem(CREATION_STARTED_KEY);
return;
}