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 ;