@everymatrix/player-account-controller 1.20.10 → 1.20.11

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/player-account-controller",
3
- "version": "1.20.10",
3
+ "version": "1.20.11",
4
4
  "main": "dist/player-account-controller.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": "90ba6c4378f429df47a59fecc6bc15675ebcfbf9"
38
+ "gitHead": "d136b207b6b54732d60b088559d888f159073b0a"
39
39
  }
@@ -165,7 +165,16 @@
165
165
  switchContent = true;
166
166
  pagePath = e.data.page.path;
167
167
 
168
- selected = e.data.page.id;
168
+ if (e.data.page.id) {
169
+ selected = e.data.page.id;
170
+ } else {
171
+ menuData.forEach(element => {
172
+ if (element.path.includes(e.data.page.path)) {
173
+ selected = element.id;
174
+ }
175
+ })
176
+ }
177
+
169
178
  if(pagePath == '/profile-info') {
170
179
  getUserProfileInfo();
171
180
  getUserProfileConsent();