Skip to content

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

chore: added redirect to logout page

Sheen Capadnganf2991a9400fb
diff --git a/frontend/src/components/organization/CreateOrgModal/CreateOrgModal.tsx b/frontend/src/components/organization/CreateOrgModal/CreateOrgModal.tsx
index f17c16d222..0049b61ad1 100644
--- a/frontend/src/components/organization/CreateOrgModal/CreateOrgModal.tsx
+++ b/frontend/src/components/organization/CreateOrgModal/CreateOrgModal.tsx
@@ -126,7 +126,10 @@ export const CreateOrgModal: FC<CreateOrgModalProps> = ({ isOpen, onClose }) =>
<button
type="button"
className="text-sm text-mineshaft-400 underline-offset-4 hover:text-mineshaft-200 hover:underline"
- onClick={() => logout.mutate()}
+ onClick={async () => {
+ await logout.mutateAsync();
+ navigate({ to: "/login" });
+ }}
>
Log out
</button>