@everymatrix/casino-categories-slider 0.0.418 → 0.0.420

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/casino-categories-slider",
3
- "version": "0.0.418",
3
+ "version": "0.0.420",
4
4
  "main": "dist/casino-categories-slider.js",
5
5
  "svelte": "src/index.ts",
6
6
  "scripts": {
@@ -36,5 +36,5 @@
36
36
  "publishConfig": {
37
37
  "access": "public"
38
38
  },
39
- "gitHead": "3fa3d6854e1d7a869fcc98718c0306274dce3f2a"
39
+ "gitHead": "23697f5b0af1976be1da3e17d14dca4bce1ec98e"
40
40
  }
@@ -307,6 +307,8 @@
307
307
  }
308
308
 
309
309
  const setActiveCategory = ():void => {
310
+ let checkIfSubcategory = activecategory.split('$');
311
+ activecategory = (checkIfSubcategory.length > 2) ? activecategory.split('$').slice(0, 2).join('$') : activecategory;
310
312
  activeIndex = categories.map((item) => item.id).indexOf(decodeURI(activecategory));
311
313
  }
312
314