fix: correct metadata access and locale variable names
This commit is contained in:
@@ -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" />
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -86,7 +86,7 @@ export default async function ProductsPage({ params }: ProductsPageProps) {
|
||||
key={product.id}
|
||||
product={product}
|
||||
index={index}
|
||||
locale={productLocale}
|
||||
locale={validLocale}
|
||||
/>
|
||||
))}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user