diff --git a/src/app/shop/[id]/page.tsx b/src/app/shop/[id]/page.tsx index 8140869..c51e4a5 100644 --- a/src/app/shop/[id]/page.tsx +++ b/src/app/shop/[id]/page.tsx @@ -63,7 +63,7 @@ export default function ProductPage({ params }: ProductPageProps) { await checkout(getCheckoutItems(), { successUrl: currentUrl.toString() }); }, [cartItems, checkout, getCheckoutItems]); - if (isLoading) { + if (isLoading || !product) { return (