Skip to content

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

Fix selector in JS

weronka183de26c41f2
diff --git a/saleor/static/js/storefront.js b/saleor/static/js/storefront.js
index 619180684f..d4cb90cb06 100644
--- a/saleor/static/js/storefront.js
+++ b/saleor/static/js/storefront.js
@@ -138,7 +138,7 @@ $('.nav-tabs a').click((e) => {
$(this).tab('show');
});
-$("ul.nav-tabs li a:not:first-of-type").on("shown.bs.tab", (e) => {
+$("ul.nav-tabs li a:not(:first)").on("shown.bs.tab", (e) => {
var id = $(e.target).attr("href").substr(1);
window.location.hash = id;
});