We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a939ebb + a9eb264 commit 593dfc2Copy full SHA for 593dfc2
utils/functions/functions.js
@@ -60,7 +60,7 @@ export const getFormattedCart = (data) => {
60
61
let i = 0;
62
givenProducts.forEach(() => {
63
- const givenProduct = givenProducts[i].product;
+ const givenProduct = givenProducts[parseInt(i)].product;
64
const product = {};
65
// Convert price to a float value
66
const convertedCurrency = givenProducts[i].total.replace(/[^0-9.-]+/g, '');
0 commit comments