Fixes quirks with featured and related products. (#978)

This commit is contained in:
Michael Novotny
2023-04-21 11:19:08 -05:00
committed by GitHub
parent 7de3ae5583
commit 8ff670d7d6
4 changed files with 4 additions and 5 deletions

View File

@@ -99,7 +99,7 @@ export default async function ProductPage({ params }: { params: { handle: string
async function RelatedProducts({ id }: { id: string }) {
const relatedProducts = await getProductRecommendations(id);
if (!relatedProducts) return null;
if (!relatedProducts.length) return null;
return (
<div className="px-4 py-8">