diff --git a/apps/web/src/app/[locale]/auth/join/page.tsx b/apps/web/src/app/[locale]/auth/join/page.tsx index 0f627d2..8b39954 100644 --- a/apps/web/src/app/[locale]/auth/join/page.tsx +++ b/apps/web/src/app/[locale]/auth/join/page.tsx @@ -42,11 +42,16 @@ export default async function JoinPage({ const invitation = await getInvitation({ id: invitationId }); if (invitation) { - const { organization } = await handle(api.organizations[":id"].$get)({ + // tactical typecast: Hono RPC inference loses the response shape on this + // route (no zod validator on the response). Proper fix is to add a + // getOrganizationResponseSchema to packages/api and wire it into the + // route's c.json() call. + const res = (await handle(api.organizations[":id"].$get)({ param: { id: invitation.organizationId, }, - }); + })) as { organization: Parameters[0]["organization"] | null }; + const { organization } = res; if (!organization) { return notFound();