Websocket fixes.

This commit is contained in:
2026-01-11 00:46:49 -06:00
parent d4855040d8
commit 174abb7f56
32 changed files with 2770 additions and 32 deletions

View File

@ -21,7 +21,9 @@ export const TakeBetModal = ({
event,
}: TakeBetModalProps) => {
const queryClient = useQueryClient()
const betInfo = event.spread_grid[spread.toString()]
// spread_grid returns an array of bets at this spread - find the specific bet by ID
const betsAtSpread = event.spread_grid[spread.toString()] || []
const betInfo = betsAtSpread.find(b => b.bet_id === betId)
const takeBetMutation = useMutation({
mutationFn: () => spreadBetsApi.takeBet(betId),