Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

fix bug

Steven Teyb0ee08a3c51a
diff --git a/app/dub.co/customers/[slug]/page.tsx b/app/dub.co/customers/[slug]/page.tsx
index 12bde635be..6352f35a28 100644
--- a/app/dub.co/customers/[slug]/page.tsx
+++ b/app/dub.co/customers/[slug]/page.tsx
@@ -21,16 +21,16 @@ export async function generateMetadata({
}: {
params: { slug: string };
}): Promise<Metadata | undefined> {
- const post = allBlogPosts.find((post) => post.slug === params.slug);
+ const post = allCustomersPosts.find((post) => post.slug === params.slug);
if (!post) {
return;
}
- const { title, seoTitle, summary, seoDescription, image } = post;
+ const { title, summary, image } = post;
return constructMetadata({
- title: `${seoTitle || title} – Dub`,
- description: seoDescription || summary,
+ title: `${title} – Dub`,
+ description: summary,
image,
});
}