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.
1 parent 9617b69 commit 31f1d49Copy full SHA for 31f1d49
refactor/src/utils/functions/functions.tsx
@@ -154,7 +154,10 @@ export const getFormattedCart = (data: IFormattedCartProps) => {
154
const givenProduct = givenProducts[Number(i)].product.node;
155
156
// Convert price to a float value
157
- const convertedCurrency = givenProducts[Number(i)].total.replace(/[^0-9.-]+/g, '');
+ const convertedCurrency = givenProducts[Number(i)].total.replace(
158
+ /[^0-9.-]+/g,
159
+ ''
160
+ );
161
162
product.productId = givenProduct.productId;
163
product.cartKey = givenProducts[Number(i)].key;
0 commit comments