comment + favorive

This commit is contained in:
hamid zarghami
2025-09-17 12:29:58 +03:30
parent bc22bbd6d9
commit f849ebdb42
15 changed files with 562 additions and 85 deletions
+4 -1
View File
@@ -22,7 +22,10 @@ const ProductCard: FC<Props> = ({ item }) => {
const { mutate: removeWishlist } = useRemoveWishlist()
const handleWish = () => {
const handleWish = (e: React.MouseEvent) => {
e.preventDefault()
e.stopPropagation()
if (!isLogin) return
if (!item?._id || !item?.variants[0]?._id) return