@devrongx/games 0.4.1 → 0.4.3

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.1",
3
+ "version": "0.4.3",
4
4
  "description": "Game UI components for sports prediction markets",
5
5
  "license": "MIT",
6
6
  "main": "./src/index.ts",
@@ -122,7 +122,7 @@ export const PreMatchBetsPopup = ({ poolId, matchId }: PreMatchBetsPopupProps) =
122
122
  const [submitError, setSubmitError] = useState<string | null>(null);
123
123
 
124
124
  const betSummary = useMemo(
125
- () => config ? calcBetSummary(bets, config) : { selectedCount: 0, compoundMultiplier: 0, totalEntry: 0, compoundedReward: 0, remainingBalance: 0, riskPercent: 0, potentialBalance: 0, prizes: [] },
125
+ () => config ? calcBetSummary(bets, config) : { selectedCount: 0, compoundMultiplier: 0, totalEntry: 0, baseReward: 0, compoundedReward: 0, remainingBalance: 0, riskPercent: 0, potentialBalance: 0 },
126
126
  [bets, config],
127
127
  );
128
128
 
@@ -152,6 +152,7 @@ export interface ITDLeaderboardEntry {
152
152
  bets_lost: number;
153
153
  questions_left: number;
154
154
  active_parlays: number;
155
+ payout_amount?: number | null;
155
156
  }
156
157
 
157
158
  export interface ITDLeaderboardResponse {