wip: Fixes

This commit is contained in:
Sol Irvine
2023-09-06 17:56:19 -07:00
parent 391ca16f8f
commit ebaff744ad
3 changed files with 7 additions and 5 deletions

View File

@@ -8,7 +8,7 @@ export function ProductTastingNotes({ product }: { product: Product }) {
const imageHeight = product?.notesImage?.reference?.image?.height;
const imageAlt = product?.notesImage?.reference?.image?.altText;
if (!imageUrl && !imageWidth && !imageHeight) {
if (!product?.notes || !imageUrl || !imageWidth || !imageHeight) {
return null;
}