comment + favorive
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user