From c16bfab12a5e5434787ab81d6447aa17d860780f Mon Sep 17 00:00:00 2001 From: Mashy Date: Tue, 30 Jul 2019 20:49:16 +1000 Subject: [PATCH] nav to list after setting team --- client/src/events.jsx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/client/src/events.jsx b/client/src/events.jsx index a6718ee1..15b4db68 100644 --- a/client/src/events.jsx +++ b/client/src/events.jsx @@ -9,14 +9,15 @@ function registerEvents(store) { store.dispatch(actions.setPing(ping)); } - function setTeam(team) { - store.dispatch(actions.setTeam(team)); - } - function setNav(v) { store.dispatch(actions.setNav(v)); } + function setTeam(team) { + store.dispatch(actions.setTeam(team)); + setNav('list'); + } + function setConstructList(constructs) { store.dispatch(actions.setConstructs(constructs)); }