@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.mjs
CHANGED
|
@@ -6066,18 +6066,18 @@ function JoinGameSheet({
|
|
|
6066
6066
|
const awayBetsCount = bettors.filter((b) => b.team === "away").length;
|
|
6067
6067
|
const drawBetsCount = bettors.filter((b) => b.team === "draw").length;
|
|
6068
6068
|
const newPool = totalPool + wager;
|
|
6069
|
-
const
|
|
6070
|
-
const
|
|
6071
|
-
const
|
|
6069
|
+
const homeWith = homePool + wager;
|
|
6070
|
+
const awayWith = awayPool + wager;
|
|
6071
|
+
const drawWith = drawPool + wager;
|
|
6072
6072
|
return {
|
|
6073
|
-
homeOdds:
|
|
6074
|
-
awayOdds:
|
|
6075
|
-
drawOdds:
|
|
6073
|
+
homeOdds: homeWith > 0 ? (newPool / homeWith).toFixed(2) : "\u2014",
|
|
6074
|
+
awayOdds: awayWith > 0 ? (newPool / awayWith).toFixed(2) : "\u2014",
|
|
6075
|
+
drawOdds: drawWith > 0 ? (newPool / drawWith).toFixed(2) : "\u2014",
|
|
6076
6076
|
homeBets: homeBetsCount,
|
|
6077
6077
|
awayBets: awayBetsCount,
|
|
6078
6078
|
drawBets: drawBetsCount
|
|
6079
6079
|
};
|
|
6080
|
-
}, [totalPool, homePool, awayPool, drawPool, bettors, wager
|
|
6080
|
+
}, [totalPool, homePool, awayPool, drawPool, bettors, wager]);
|
|
6081
6081
|
const selectedOdds = selectedTeam === "home" ? homeOdds : selectedTeam === "away" ? awayOdds : selectedTeam === "draw" ? drawOdds : "\u2014";
|
|
6082
6082
|
const potentialWinnings = selectedOdds !== "\u2014" ? formatSol(parseFloat(selectedOdds) * wager) : "\u2014";
|
|
6083
6083
|
const homeName = shortName ? shortName(opponents[0]?.name) : opponents[0]?.name || "Home";
|