Skip to content

Commit f8f80c6

Browse files
committed
Add base radix for parseInt
1 parent 048a927 commit f8f80c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils/functions/functions.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ export const getUpdatedItems = (products, newQty, cartKey) => {
169169
if (cartItem.cartKey === cartKey) {
170170
updatedItems.push({
171171
key: cartItem.cartKey,
172-
quantity: parseInt(newQty),
172+
quantity: parseInt(newQty, 10),
173173
});
174174

175175
// Otherwise just push the existing qty without updating.

0 commit comments

Comments
 (0)