summaryrefslogtreecommitdiff
path: root/src-migrate/modules/product-detail
diff options
context:
space:
mode:
authorAzka Nathan <darizkyfaz@gmail.com>2025-05-06 09:31:44 +0700
committerAzka Nathan <darizkyfaz@gmail.com>2025-05-06 09:31:44 +0700
commit9e90f51952deee673c19f11c4498229e81ce29f2 (patch)
treeaacb11b7c40f412af2f6f9d870d9d67de045e226 /src-migrate/modules/product-detail
parent38666d79091b0cc95045a8d7e824e772d8b8cc12 (diff)
fix bug
Diffstat (limited to 'src-migrate/modules/product-detail')
-rw-r--r--src-migrate/modules/product-detail/components/ProductDetail.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src-migrate/modules/product-detail/components/ProductDetail.tsx b/src-migrate/modules/product-detail/components/ProductDetail.tsx
index c26dafde..685c107d 100644
--- a/src-migrate/modules/product-detail/components/ProductDetail.tsx
+++ b/src-migrate/modules/product-detail/components/ProductDetail.tsx
@@ -117,7 +117,7 @@ const ProductDetail = ({ product }: Props) => {
className="w-full h-full object-cover rounded-sm"
loading="lazy"
onError={(e) => {
- e.target.src = '/path/to/fallback-image.jpg'; // Fallback jika gambar error
+ (e.target as HTMLImageElement).src = '/path/to/fallback-image.jpg';
}}
/>
</div>