mirror of
https://github.com/vercel/commerce.git
synced 2025-07-22 20:26:49 +00:00
Fixes quirks with featured and related products. (#978)
This commit is contained in:
@@ -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">
|
||||
|
Reference in New Issue
Block a user