@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
|
@@ -412,7 +412,7 @@ export function calcBetSummary(
|
|
|
412
412
|
config: IChallengeConfig,
|
|
413
413
|
): IBetSummary {
|
|
414
414
|
const { markets, startingBalance } = config;
|
|
415
|
-
const selectedCount = Object.
|
|
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);
|