Changeset 9bd09b0 for components/Alert.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/Alert.jsx
r285c3cc r9bd09b0 8 8 9 9 import { setBlackjack, setStyle } from '../redux/reducers/styleSlice' 10 import { set Game } from '../redux/reducers/playerSlice'10 import { setBlackjackGame } from '../redux/reducers/playerSlice' 11 11 12 12 const Alert = () => { … … 30 30 axios.get(`/api/blackjack?action=play_again&session_id=${localStorage.CAESSINO_SESSION_ID}`).then(res => { 31 31 if (res.data?.success && res.data?.game) { 32 dispatch(set Game({33 ...playerState. game,32 dispatch(setBlackjackGame({ 33 ...playerState.blackjackGame, 34 34 status: res.data.game?.status, 35 35 playerCards: res.data.game?.playerCards,
Note:
See TracChangeset
for help on using the changeset viewer.