@everymatrix/casino-most-played-section 1.13.6 → 1.13.7

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-most-played-section",
3
- "version": "1.13.6",
3
+ "version": "1.13.7",
4
4
  "main": "index.js",
5
5
  "svelte": "src/index.ts",
6
6
  "scripts": {
@@ -35,5 +35,5 @@
35
35
  "publishConfig": {
36
36
  "access": "public"
37
37
  },
38
- "gitHead": "71837cbb0b2825cc3c42af1fc6188c5b2a835369"
38
+ "gitHead": "b21ba9bbcd96f48838ae02c6feb60ee099962317"
39
39
  }
@@ -135,13 +135,15 @@
135
135
  }
136
136
  });
137
137
 
138
- Promise.all(promises).then((values:any) => {
139
- mostPlayedGames = values.map((item:any) => item[0]);
140
- if(casinomygames === "true") {
141
- mostPlayedGames = mostPlayedGames.slice(0, JSON.parse(visiblegames));
142
- }
143
- window.postMessage({ type: 'MostPlayedData', mostPlayedGames }, window.location.href);
144
- });
138
+ Promise.all(promises).then((values) => {
139
+ mostPlayedGames = values.filter((item) => !('error' in item)).map((item) => item[0]);
140
+
141
+ if (casinomygames === "true") {
142
+ mostPlayedGames = mostPlayedGames.slice(0, JSON.parse(visiblegames));
143
+ }
144
+
145
+ window.postMessage({ type: 'MostPlayedData', mostPlayedGames }, window.location.href);
146
+ });
145
147
  } else {
146
148
  mostPlayedEmpty = true;
147
149
  }