I have a function that adds to the cart using ajax API, when I added the same product twice, it counts like two different products instead of changing the quantity.
The cart looks like this:
See, two equal variant_id, but counting as 2 different products