@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.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 newHome = homePool + (selectedTeam === "home" ? wager : 0);
6070
- const newAway = awayPool + (selectedTeam === "away" ? wager : 0);
6071
- const newDraw = drawPool + (selectedTeam === "draw" ? wager : 0);
6069
+ const homeWith = homePool + wager;
6070
+ const awayWith = awayPool + wager;
6071
+ const drawWith = drawPool + wager;
6072
6072
  return {
6073
- homeOdds: newHome > 0 ? (newPool / newHome).toFixed(2) : "\u2014",
6074
- awayOdds: newAway > 0 ? (newPool / newAway).toFixed(2) : "\u2014",
6075
- drawOdds: newDraw > 0 ? (newPool / newDraw).toFixed(2) : "\u2014",
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, selectedTeam]);
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";