fix: correct metadata access and locale variable names

This commit is contained in:
Unchained
2026-03-24 14:16:49 +02:00
parent df95e729fc
commit 569a3e65fe
3 changed files with 3 additions and 3 deletions

View File

@@ -45,7 +45,7 @@ export default async function AboutPage({ params }: AboutPageProps) {
<div className="relative h-[400px] md:h-[500px] overflow-hidden">
<img
src="https://images.unsplash.com/photo-1608571423902-eed4a5ad8108?q=80&w=2000&auto=format&fit=crop"
alt={metadata.productionAlt}
alt={metadata.about.productionAlt}
className="w-full h-full object-cover"
/>
<div className="absolute inset-0 bg-black/20" />

View File

@@ -87,7 +87,7 @@ export default async function ProductPage({ params }: ProductPageProps) {
let relatedProducts: Product[] = [];
try {
const allProducts = await getProducts(productLocale, 8);
const allProducts = await getProducts(saleorLocale, 8);
relatedProducts = allProducts
.filter((p: Product) => p.id !== product.id)
.slice(0, 4);

View File

@@ -86,7 +86,7 @@ export default async function ProductsPage({ params }: ProductsPageProps) {
key={product.id}
product={product}
index={index}
locale={productLocale}
locale={validLocale}
/>
))}
</div>