make sure to set team in storage

This commit is contained in:
ntr 2019-07-13 21:58:40 +10:00
parent 8628cb0b0c
commit 4c5eca0e30

View File

@ -37,7 +37,7 @@ function registerEvents(store) {
// team is fucked up, or just registered // team is fucked up, or just registered
// reset to the first 3 constructs // reset to the first 3 constructs
if (!team.every(t => t && ids.includes(t))) { if (!team.every(t => t && ids.includes(t))) {
store.dispatch(actions.setTeam([ids[0], ids[1], ids[2]])); setTeam([ids[0], ids[1], ids[2]]);
} }
store.dispatch(actions.setConstructs(constructs)); store.dispatch(actions.setConstructs(constructs));