@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 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 newHome = homePool + (selectedTeam === "home" ? wager : 0);
6102
- const newAway = awayPool + (selectedTeam === "away" ? wager : 0);
6103
- const newDraw = drawPool + (selectedTeam === "draw" ? wager : 0);
6101
+ const homeWith = homePool + wager;
6102
+ const awayWith = awayPool + wager;
6103
+ const drawWith = drawPool + wager;
6104
6104
  return {
6105
- homeOdds: newHome > 0 ? (newPool / newHome).toFixed(2) : "\u2014",
6106
- awayOdds: newAway > 0 ? (newPool / newAway).toFixed(2) : "\u2014",
6107
- drawOdds: newDraw > 0 ? (newPool / newDraw).toFixed(2) : "\u2014",
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, selectedTeam]);
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";