diff options
| author | Azka Nathan <darizkyfaz@gmail.com> | 2025-05-06 09:31:44 +0700 |
|---|---|---|
| committer | Azka Nathan <darizkyfaz@gmail.com> | 2025-05-06 09:31:44 +0700 |
| commit | 9e90f51952deee673c19f11c4498229e81ce29f2 (patch) | |
| tree | aacb11b7c40f412af2f6f9d870d9d67de045e226 /src-migrate/modules/product-detail/components | |
| parent | 38666d79091b0cc95045a8d7e824e772d8b8cc12 (diff) | |
fix bug
Diffstat (limited to 'src-migrate/modules/product-detail/components')
| -rw-r--r-- | src-migrate/modules/product-detail/components/ProductDetail.tsx | 2 |
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> |
