@dubsdotapp/expo 0.5.29 → 0.5.30
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/dist/index.js +7 -7
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7 -7
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/ui/game/JoinGameSheet.tsx +14 -7
package/dist/index.js
CHANGED
|
@@ -6098,18 +6098,18 @@ function JoinGameSheet({
|
|
|
6098
6098
|
const awayBetsCount = bettors.filter((b) => b.team === "away").length;
|
|
6099
6099
|
const drawBetsCount = bettors.filter((b) => b.team === "draw").length;
|
|
6100
6100
|
const newPool = totalPool + wager;
|
|
6101
|
-
const
|
|
6102
|
-
const
|
|
6103
|
-
const
|
|
6101
|
+
const homeWith = homePool + wager;
|
|
6102
|
+
const awayWith = awayPool + wager;
|
|
6103
|
+
const drawWith = drawPool + wager;
|
|
6104
6104
|
return {
|
|
6105
|
-
homeOdds:
|
|
6106
|
-
awayOdds:
|
|
6107
|
-
drawOdds:
|
|
6105
|
+
homeOdds: homeWith > 0 ? (newPool / homeWith).toFixed(2) : "\u2014",
|
|
6106
|
+
awayOdds: awayWith > 0 ? (newPool / awayWith).toFixed(2) : "\u2014",
|
|
6107
|
+
drawOdds: drawWith > 0 ? (newPool / drawWith).toFixed(2) : "\u2014",
|
|
6108
6108
|
homeBets: homeBetsCount,
|
|
6109
6109
|
awayBets: awayBetsCount,
|
|
6110
6110
|
drawBets: drawBetsCount
|
|
6111
6111
|
};
|
|
6112
|
-
}, [totalPool, homePool, awayPool, drawPool, bettors, wager
|
|
6112
|
+
}, [totalPool, homePool, awayPool, drawPool, bettors, wager]);
|
|
6113
6113
|
const selectedOdds = selectedTeam === "home" ? homeOdds : selectedTeam === "away" ? awayOdds : selectedTeam === "draw" ? drawOdds : "\u2014";
|
|
6114
6114
|
const potentialWinnings = selectedOdds !== "\u2014" ? formatSol(parseFloat(selectedOdds) * wager) : "\u2014";
|
|
6115
6115
|
const homeName = shortName ? shortName(opponents[0]?.name) : opponents[0]?.name || "Home";
|