Skip to content

Commit eb3bc59

Browse files
committed
🧹 clean up routes.js
1 parent 776c3d2 commit eb3bc59

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

client/routes.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,11 @@ const checkAuth = (store) => {
2222
store.dispatch(getUser());
2323
};
2424

25+
// This short-circuit seems unnecessary - using the mobile <Switch /> navigator (future) should prevent this from being called
2526
const onRouteChange = (store) => {
26-
// FIXME: This seems unnecessary - using the mobile <Switch /> navigator should prevent this from being called
2727
const path = window.location.pathname;
2828
if (path.includes('/mobile')) return;
29+
2930
store.dispatch(stopSketch());
3031
};
3132

0 commit comments

Comments
 (0)