Skip to content

Commit 6c67bf8

Browse files
committed
fixed the Type error: Type 'Product | undefined' in preview-modal
1 parent 6d86fea commit 6c67bf8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/preview-modal.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ const PreviewModal = () => {
1616
<Gallery images={product?.images} />
1717
</div>
1818
<div className="sm:col-span-8 lg:col-span-7">
19-
<Info data={product}/>
20-
</div>
19+
<Info data={product!} />
20+
</div>
2121
</div>
2222
</Modal>
2323
);

0 commit comments

Comments
 (0)