@everymatrix/casino-challenges-overlay 0.17.113 → 0.17.114

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.
@@ -4116,9 +4116,15 @@ const CasinoChallengesOverlayDrawer = class {
4116
4116
  break;
4117
4117
  if (isPending) {
4118
4118
  this.pendingChallenges = [...challenges, data];
4119
+ if (this.activeTabIndex === EChallengesTabs.Pending && this.pendingChallenges.length === 1) {
4120
+ this.updateActiveChallenge(data);
4121
+ }
4119
4122
  }
4120
4123
  else {
4121
4124
  this.activeChallenges = [...challenges, data];
4125
+ if (this.activeTabIndex === EChallengesTabs.Active && this.activeChallenges.length === 1) {
4126
+ this.updateActiveChallenge(data);
4127
+ }
4122
4128
  }
4123
4129
  break;
4124
4130
  // component loading state processing for requests
@@ -4113,9 +4113,15 @@ const CasinoChallengesOverlayDrawer = class {
4113
4113
  break;
4114
4114
  if (isPending) {
4115
4115
  this.pendingChallenges = [...challenges, data];
4116
+ if (this.activeTabIndex === EChallengesTabs.Pending && this.pendingChallenges.length === 1) {
4117
+ this.updateActiveChallenge(data);
4118
+ }
4116
4119
  }
4117
4120
  else {
4118
4121
  this.activeChallenges = [...challenges, data];
4122
+ if (this.activeTabIndex === EChallengesTabs.Active && this.activeChallenges.length === 1) {
4123
+ this.updateActiveChallenge(data);
4124
+ }
4119
4125
  }
4120
4126
  break;
4121
4127
  // component loading state processing for requests
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/casino-challenges-overlay",
3
- "version": "0.17.113",
3
+ "version": "0.17.114",
4
4
  "main": "./dist/index.cjs.js",
5
5
  "module": "./dist/index.js",
6
6
  "es2015": "./dist/esm/index.mjs",