Skip to content

Commit

Permalink
we
Browse files Browse the repository at this point in the history
  • Loading branch information
p4dd9 committed Oct 9, 2024
1 parent d6bd35d commit b934630
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/app/(site)/[streamer]/[wishSlug]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ type Props = {
}

export async function generateMetadata({ params }: Props): Promise<Metadata> {
if (!params.streamer || !params.wishSlug) {
if (params.streamer === 'A' || params.wishSlug === 'A') {
return {}
}
const streamerSlug = params.streamer
Expand All @@ -33,11 +33,11 @@ export async function generateMetadata({ params }: Props): Promise<Metadata> {
}

export async function generateStaticParams() {
return cmsDonationPagePaths.length > 0 ? cmsDonationPagePaths : [{ streamer: '', wishSlug: '' }]
return cmsDonationPagePaths.length > 0 ? cmsDonationPagePaths : [{ streamer: 'A', wishSlug: 'A' }]
}

export default async function Page({ params }: Props) {
if (!params.streamer || !params.wishSlug) {
if (params.streamer === 'A' || params.wishSlug === 'A') {
return <React.Fragment></React.Fragment>
}
const streamerSlug = params.streamer
Expand Down

0 comments on commit b934630

Please sign in to comment.