From eb3bc59382a27474ed41d906bd9f6b6f49ca1938 Mon Sep 17 00:00:00 2001 From: ghalestrilo Date: Fri, 19 Jun 2020 15:58:48 -0300 Subject: [PATCH] :broom: clean up routes.js --- client/routes.jsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/routes.jsx b/client/routes.jsx index a98bc04d..43c1918d 100644 --- a/client/routes.jsx +++ b/client/routes.jsx @@ -22,10 +22,11 @@ const checkAuth = (store) => { store.dispatch(getUser()); }; +// This short-circuit seems unnecessary - using the mobile navigator (future) should prevent this from being called const onRouteChange = (store) => { - // FIXME: This seems unnecessary - using the mobile navigator should prevent this from being called const path = window.location.pathname; if (path.includes('/mobile')) return; + store.dispatch(stopSketch()); };