diff --git a/app/[section]/page.tsx b/app/[section]/page.tsx index ff87bf70..833ce0f0 100644 --- a/app/[section]/page.tsx +++ b/app/[section]/page.tsx @@ -10,8 +10,8 @@ const menuItems = { missions: "https://example.com/missions" } -export default async function SectionPage({ params }: { params: { section: string } }) { - const section = params?.section ? String(params.section) : ''; +export default async function SectionPage({ params }: { params: Promise<{ section: string }> }) { + const { section } = await params; const iframeUrl = menuItems[section as keyof typeof menuItems]; diff --git a/app/signin/page.tsx b/app/signin/page.tsx index 52f71d51..fd48095e 100644 --- a/app/signin/page.tsx +++ b/app/signin/page.tsx @@ -50,7 +50,7 @@ export default function SignIn() {