From 6ce43884c95809e260e1e2f1511223a328df0bc8 Mon Sep 17 00:00:00 2001 From: Mashy Date: Sun, 24 Nov 2019 12:42:27 +1000 Subject: [PATCH] clear vbox state variables on game leave --- client/src/components/instance.ctrl.top.btns.jsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/client/src/components/instance.ctrl.top.btns.jsx b/client/src/components/instance.ctrl.top.btns.jsx index 108485f7..7fc4f018 100644 --- a/client/src/components/instance.ctrl.top.btns.jsx +++ b/client/src/components/instance.ctrl.top.btns.jsx @@ -26,6 +26,9 @@ const addState = connect( dispatch(actions.setNav('play')); dispatch(actions.setGame(null)); dispatch(actions.setInstance(null)); + dispatch(actions.setVboxSelected({ storeSelect: [], stashSelect: [] })); + dispatch(actions.setInfo(null)); + dispatch(actions.setItemUnequip([])); if (tutorial) dispatch(actions.setTutorial(1)); }