The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
Update layout.tsx
Steven Tey9c788e8165b0
diff --git a/apps/web/app/(ee)/partners.dub.co/(apply)/[programSlug]/layout.tsx b/apps/web/app/(ee)/partners.dub.co/(apply)/[programSlug]/layout.tsxindex b80ebc8d19..a6187a5fe7 100644--- a/apps/web/app/(ee)/partners.dub.co/(apply)/[programSlug]/layout.tsx+++ b/apps/web/app/(ee)/partners.dub.co/(apply)/[programSlug]/layout.tsx@@ -27,9 +27,11 @@ export async function generateMetadata({return constructMetadata({title: `${program.name} Affiliate Program`,- description: `Join the ${program.name} affiliate program and ${formatRewardDescription(- { reward: rewards[0] },- ).toLowerCase()} by referring ${program.name} to your friends and followers.`,+ description: `Join the ${program.name} affiliate program and ${+ rewards.length > 0+ ? formatRewardDescription({ reward: rewards[0] }).toLowerCase()+ : "earn commissions"+ } by referring ${program.name} to your friends and followers.`,image: `${APP_DOMAIN}/api/og/program?slug=${program.slug}`,});}