@everymatrix/casino-categories-slider 1.8.1 → 1.8.3

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": "1.8.1",
3
+ "version": "1.8.3",
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": "e558ed5234cd858fa71696743229caa273752a2e"
39
+ "gitHead": "15df0a4bc1195017b7df65675dfd40261b5dbe8b"
40
40
  }
@@ -30,7 +30,6 @@
30
30
  let identity:string = 'CasinoSliderData'
31
31
 
32
32
  // Player logged-in/logged-out status & session
33
- let activeIndex:number = 0;
34
33
 
35
34
  let isLoading:boolean = true;
36
35
  let error:string;
@@ -151,7 +150,6 @@
151
150
  const setActiveCategory = ():void => {
152
151
  let checkIfSubcategory = activecategory.split('$');
153
152
  activecategory = (checkIfSubcategory.length > 2) ? activecategory.split('$').slice(0, 2).join('$') : activecategory;
154
- activeIndex = categories.map((item) => item.id).indexOf(decodeURI(activecategory));
155
153
  }
156
154
 
157
155
  const setClientStyling = ():void => {
@@ -205,7 +203,7 @@
205
203
  {clientstyling}
206
204
  {clientstylingurl}
207
205
  {containermaxwidth}
208
- activeindex={activeIndex}
206
+ activeindex={activecategory}
209
207
  {actionevent}
210
208
  {location}/>
211
209
  </div>