Changeset 9bd09b0 for components/blackjack/BlackjackHeader.jsx
- Timestamp:
- 06/23/22 00:08:35 (2 years ago)
- Branches:
- main
- Children:
- ace7865
- Parents:
- 285c3cc
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
components/blackjack/BlackjackHeader.jsx
r285c3cc r9bd09b0 10 10 import { useDispatch, useSelector } from 'react-redux' 11 11 12 import { set Game, setPlayer } from '../../redux/reducers/playerSlice'12 import { setBlackjackGame, setPlayer } from '../../redux/reducers/playerSlice' 13 13 import { setBlackjack, setStyle } from '../../redux/reducers/styleSlice' 14 14 … … 50 50 })); 51 51 52 dispatch(set Game({53 ...playerState. game,52 dispatch(setBlackjackGame({ 53 ...playerState.blackjackGame, 54 54 status: res.data?.status, 55 55 playerCards: res.data?.playerCards, … … 224 224 initialBet: { 225 225 ...styleState.blackjack.inputControls.initialBet, 226 chosenCredits: parseInt( postgreRes.data?.credits/2),226 chosenCredits: parseInt(res.data?.credits/2), 227 227 } 228 228 },
Note:
See TracChangeset
for help on using the changeset viewer.