Fixes not updating the quantity when clicking on the "Update" button