Ignore:
Timestamp:
06/23/22 00:08:35 (2 years ago)
Author:
anastasovv <simon@…>
Branches:
main
Children:
ace7865
Parents:
285c3cc
Message:

Roulette place a bet functionality

File:
1 edited

Legend:

Unmodified
Added
Removed
  • components/blackjack/BlackjackHeader.jsx

    r285c3cc r9bd09b0  
    1010import { useDispatch, useSelector } from 'react-redux'
    1111
    12 import { setGame, setPlayer } from '../../redux/reducers/playerSlice'
     12import { setBlackjackGame, setPlayer } from '../../redux/reducers/playerSlice'
    1313import { setBlackjack, setStyle } from '../../redux/reducers/styleSlice'
    1414
     
    5050                }));
    5151
    52                 dispatch(setGame({
    53                     ...playerState.game,
     52                dispatch(setBlackjackGame({
     53                    ...playerState.blackjackGame,
    5454                    status: res.data?.status,
    5555                    playerCards: res.data?.playerCards,
     
    224224                            initialBet: {
    225225                                ...styleState.blackjack.inputControls.initialBet,
    226                                 chosenCredits: parseInt(postgreRes.data?.credits/2),
     226                                chosenCredits: parseInt(res.data?.credits/2),
    227227                            }
    228228                        },
Note: See TracChangeset for help on using the changeset viewer.