Changeset ebf5e04 for redux


Ignore:
Timestamp:
06/12/22 18:31:03 (2 years ago)
Author:
anastasovv <simon@…>
Branches:
main
Children:
285c3cc
Parents:
fe03f69
Message:

Code cleanings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • redux/reducers/playerSlice.js

    rfe03f69 rebf5e04  
    1414        status: '',
    1515        sideBetName: '',
    16     },
    17     stats: {
    18         wins: {
    19             blackjack: 0,
    20             roulette: 0,
    21             poker: 0,
    22         },
    23         games: {
    24             blackjack: 0,
    25             roulette: 0,
    26             poker: 0,
    27         }
    2816    }
    2917}
     
    3927            state.game = action.payload;
    4028        },
    41         setStats: (state, action) => {
    42             state.stats = action.payload;
    43         }
    4429    }
    4530})
    4631
    47 export const { setPlayer, setGame, setStats } = playerSlice.actions
     32export const { setPlayer, setGame } = playerSlice.actions
    4833
    4934export default playerSlice.reducer
Note: See TracChangeset for help on using the changeset viewer.