From 56f36470256739b58bed926b8d04fac39f683bec Mon Sep 17 00:00:00 2001 From: Mashy Date: Tue, 22 Oct 2019 11:12:25 +1000 Subject: [PATCH] clear mtxActive on nav and if you join game. put shop before reshape --- client/src/components/header.jsx | 12 ++++++------ client/src/components/shop.jsx | 3 ++- client/src/events.jsx | 1 + 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/client/src/components/header.jsx b/client/src/components/header.jsx index 8810ecb3..2ce0368f 100644 --- a/client/src/components/header.jsx +++ b/client/src/components/header.jsx @@ -40,7 +40,7 @@ const addState = connect( dispatch(actions.setItemEquip(null)); dispatch(actions.setItemUnequip([])); dispatch(actions.setVboxHighlight([])); - + dispatch(actions.setMtxActive(null)); return dispatch(actions.setNav(place)); } @@ -83,16 +83,16 @@ function Header(args) { class={`login-btn ${nav === 'play' ? 'highlight' : ''}`}> Play - +