@everymatrix/casino-header-controller 0.0.269 → 0.0.272

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-header-controller",
3
- "version": "0.0.269",
3
+ "version": "0.0.272",
4
4
  "main": "dist/casino-header-controller.js",
5
5
  "svelte": "src/index.ts",
6
6
  "scripts": {
@@ -38,5 +38,5 @@
38
38
  "publishConfig": {
39
39
  "access": "public"
40
40
  },
41
- "gitHead": "f99063bddeebbe083973aa77500fc3ee5d9de894"
41
+ "gitHead": "2251ff7ad156e5d687da1a0ce2f71e526ca4eac5"
42
42
  }
@@ -176,7 +176,7 @@
176
176
  }
177
177
 
178
178
  const setActiveIndex = ():void => {
179
- activeIndex = mainMenuArray.map((item) => item.path).indexOf(activecategory);
179
+ activeIndex = mainMenuArray.findIndex(item => item.path.indexOf(activecategory) > -1)
180
180
  }
181
181
 
182
182
  const sendSliderData = (sliderData:any):void => {
@@ -213,8 +213,12 @@
213
213
  fetch(url)
214
214
  .then((res: any) => res.json())
215
215
  .then((data: any) => {
216
- logoPath = data.logoUrl;
217
- logoFromCms = true;
216
+ if (data.logoUrl.length > 0 && (data.logoUrl != "null" || data.logoUrl != "false")) {
217
+ logoPath = data.logoUrl;
218
+ logoFromCms = true;
219
+ } else {
220
+ logoFromCms = false;
221
+ }
218
222
  resolve(data);
219
223
  }, (err: any) => {
220
224
  logoFromCms = false;