diff --git a/frontend/app/Router.tsx b/frontend/app/Router.tsx index 5bb6b520e..3d06b3cde 100644 --- a/frontend/app/Router.tsx +++ b/frontend/app/Router.tsx @@ -74,6 +74,7 @@ const Router: React.FC = (props) => { }; const handleUserLogin = async () => { + props.mstore.initClient(); const destinationPath = localStorage.getItem(GLOBAL_DESTINATION_PATH); if ( destinationPath && @@ -83,7 +84,6 @@ const Router: React.FC = (props) => { history.push(destinationPath + location.search); localStorage.removeItem(GLOBAL_DESTINATION_PATH); } - props.mstore.initClient(); await fetchUserInfo(); const siteIdFromPath = parseInt(location.pathname.split('/')[1]); await fetchSiteList(siteIdFromPath);