@devrongx/games 0.4.10 → 0.4.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": "@devrongx/games",
3
- "version": "0.4.10",
3
+ "version": "0.4.11",
4
4
  "description": "Game UI components for sports prediction markets",
5
5
  "license": "MIT",
6
6
  "main": "./src/index.ts",
@@ -144,10 +144,9 @@ export const PreMatchBetsPopup = ({ poolId, matchId: _matchId, match: matchProp
144
144
  }
145
145
  const answeredCount = Object.keys(restored).length;
146
146
  if (answeredCount === 0) return;
147
- const allAnswered = answeredCount === config.markets.length;
148
147
  setBets(restored);
149
- if (allAnswered) {
150
- // All questions donego straight to game screen
148
+ if (answeredCount >= 5) {
149
+ // 5+ questions answeredskip straight to game screen
151
150
  setUserFlowState("game");
152
151
  } else {
153
152
  // Partial — restore into questions at the first unanswered question