chore: fix

This commit is contained in:
2026-05-03 19:44:35 +02:00
parent f8473b9a54
commit 37ae4117b4
5 changed files with 37 additions and 20 deletions
+1 -1
View File
@@ -71,7 +71,7 @@ function Cart() {
const res = await getProductById(item.product_id);
if (res.success && res.data) {
const p = res.data;
const videoMedia = p.media?.find((m) => m && m.type === "video");
const videoMedia = p.media?.find((m: { type: string; url?: string }) => m && m.type === "video");
return {
...item,
image: getProductImage(p),