summaryrefslogtreecommitdiff
path: root/frontend/src/redux/players.js
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/src/redux/players.js')
-rw-r--r--frontend/src/redux/players.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/frontend/src/redux/players.js b/frontend/src/redux/players.js
index 85b579f3..de68ae13 100644
--- a/frontend/src/redux/players.js
+++ b/frontend/src/redux/players.js
@@ -1,4 +1,4 @@
-import PlayerState, { Player } from '../models/players';
+import { Player, PlayerState } from '../models/players';
export const types = {
REQUEST_CHOOSE_USERNAME: 'USER/REQUEST_CHOOSE_USERNAME',
@@ -21,7 +21,7 @@ export const actions = {
}),
};
-export default (state = new PlayerState(), action) => {
+export const playersReducer = (state = new PlayerState(), action) => {
switch (action.type) {
case types.SET_CURRENT_PLAYER:
return state.addPlayer(action.player);
bgstack15