Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Move removeClass function to proper place

Mira Szewczyk8ddec594189c
diff --git a/saleor/static/js/storefront.js b/saleor/static/js/storefront.js
index 2865607b62..7a8351141b 100644
--- a/saleor/static/js/storefront.js
+++ b/saleor/static/js/storefront.js
@@ -195,7 +195,6 @@ $cartLine.each(function() {
$cartBadge.html(response.cart)
$qunatityError.html('')
$cartDropdown.load(summaryLink)
- $removeProductSucces.removeClass('hidden-xs-up')
},
error: (response) => {
$qunatityError.html(getAjaxError(response))
@@ -213,6 +212,7 @@ $cartLine.each(function() {
$total.html(response.total)
$cartBadge.html(response.cart)
$cartDropdown.load(summaryLink)
+ $removeProductSucces.removeClass('hidden-xs-up')
} else {
location.reload()
}