Skip to content

Commit 593dfc2

Browse files
authored
Merge pull request #392 from w3bdesign/develop
Fix "Generic Object Injection Sink"
2 parents a939ebb + a9eb264 commit 593dfc2

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
@@ -60,7 +60,7 @@ export const getFormattedCart = (data) => {
6060

6161
let i = 0;
6262
givenProducts.forEach(() => {
63-
const givenProduct = givenProducts[i].product;
63+
const givenProduct = givenProducts[parseInt(i)].product;
6464
const product = {};
6565
// Convert price to a float value
6666
const convertedCurrency = givenProducts[i].total.replace(/[^0-9.-]+/g, '');

0 commit comments

Comments
 (0)