Fix focusDeck not working on initial page load

This commit is contained in:
Lim Chee Aun 2023-09-07 18:44:12 +08:00
parent 3ce8b75e3f
commit 7c09485e26

View file

@ -185,7 +185,7 @@ function App() {
}, 100);
return () => clearTimeout(timer);
};
useEffect(focusDeck, [location]);
useEffect(focusDeck, [location, isLoggedIn]);
const showModal =
snapStates.showCompose ||
snapStates.showSettings ||