Updating cart is working fine. But my problem is,

If i remove a product from cart and change quantity to some other product in cart then click “update cart” , now the quantity doesn’t updated in cart.

after this process, if i change the quantity and click update means, then it’s working fine. The problem is happening whenever one item removed and another item details updated.