Skip to content

Commit c08dffb

Browse files
Fixed Magento is no refreshing the cart page if you delete a product from cart side block(update var name)
1 parent 60a465c commit c08dffb

File tree

1 file changed

+1
-1
lines changed
  • app/code/Magento/Checkout/view/frontend/web/js

1 file changed

+1
-1
lines changed

app/code/Magento/Checkout/view/frontend/web/js/sidebar.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ define([
311311
if (response.success) {
312312
callback.call(this, elem, response);
313313
var currentURL = window.location.pathname;
314-
if (url.includes("/checkout/cart/")) {
314+
if (currentURL.includes("/checkout/cart/")) {
315315
location.reload();
316316
}
317317
} else {

0 commit comments

Comments
 (0)