From 859ad139344c36a17c3eefd3757342a0f330ffd3 Mon Sep 17 00:00:00 2001 From: Nathan Flurry Date: Thu, 12 Mar 2026 11:36:27 -0700 Subject: [PATCH] Fix organization settings route hooks --- foundry/packages/frontend/src/app/router.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/foundry/packages/frontend/src/app/router.tsx b/foundry/packages/frontend/src/app/router.tsx index cc33ba7..0d94406 100644 --- a/foundry/packages/frontend/src/app/router.tsx +++ b/foundry/packages/frontend/src/app/router.tsx @@ -185,6 +185,7 @@ function OrganizationsRoute() { } function OrganizationSettingsRoute() { + const { organizationId } = organizationSettingsRoute.useParams(); const snapshot = useMockAppSnapshot(); if (!isMockFrontendClient && isAppSnapshotBootstrapping(snapshot)) { return ; @@ -193,7 +194,6 @@ function OrganizationSettingsRoute() { return ; } - const { organizationId } = organizationSettingsRoute.useParams(); const organization = getMockOrganizationById(snapshot, organizationId); if (!organization) { return ; @@ -203,6 +203,7 @@ function OrganizationSettingsRoute() { } function OrganizationBillingRoute() { + const { organizationId } = organizationBillingRoute.useParams(); const snapshot = useMockAppSnapshot(); if (!isMockFrontendClient && isAppSnapshotBootstrapping(snapshot)) { return ; @@ -211,7 +212,6 @@ function OrganizationBillingRoute() { return ; } - const { organizationId } = organizationBillingRoute.useParams(); const organization = getMockOrganizationById(snapshot, organizationId); if (!organization) { return ; @@ -221,6 +221,7 @@ function OrganizationBillingRoute() { } function OrganizationCheckoutRoute() { + const { organizationId, planId } = organizationCheckoutRoute.useParams(); const snapshot = useMockAppSnapshot(); if (!isMockFrontendClient && isAppSnapshotBootstrapping(snapshot)) { return ; @@ -229,7 +230,6 @@ function OrganizationCheckoutRoute() { return ; } - const { organizationId, planId } = organizationCheckoutRoute.useParams(); const organization = getMockOrganizationById(snapshot, organizationId); if (!organization) { return ;