@devrongx/games 0.4.22 → 0.4.23

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.22",
3
+ "version": "0.4.23",
4
4
  "description": "Game UI components for sports prediction markets",
5
5
  "license": "MIT",
6
6
  "main": "./src/index.ts",
@@ -412,7 +412,7 @@ export function calcBetSummary(
412
412
  config: IChallengeConfig,
413
413
  ): IBetSummary {
414
414
  const { markets, startingBalance } = config;
415
- const selectedCount = Object.keys(bets).length;
415
+ const selectedCount = Object.values(bets).filter(b => b.amount > 0).length;
416
416
  const compoundMultiplier = config.compoundMultipliers[selectedCount] ?? 1;
417
417
 
418
418
  const parlayGroups = deriveParlayGroups(bets);