Skip to content

Commit 976231a

Browse files
committed
Fix static test failure
1 parent 84c1ebf commit 976231a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/code/Magento/Checkout/view/frontend/web/js/cart/ensure-subtotal-sync.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ define([
2222
}
2323
// Remove non-numeric except . , - then normalize
2424
let cleaned = ('' + text).replace(/[^0-9,.-]/g, '');
25-
25+
2626
// If both , and . exist, assume , is thousands
2727
if (cleaned.indexOf(',') > -1 && cleaned.indexOf('.') > -1) {
2828
cleaned = cleaned.replace(/,/g, '');
@@ -38,6 +38,7 @@ define([
3838
function getCentralSubtotal() {
3939
// Sum of row totals on the table
4040
let sum = 0;
41+
4142
$root.find('#shopping-cart-table .col.subtotal .cart-price').each(function () {
4243
const text = $(this).text(), val = parsePrice(text);
4344

0 commit comments

Comments
 (0)