This commit is contained in:
unclekingpin 2023-07-20 15:22:16 -07:00
parent dc85e938bd
commit 2c6c2adb74

View file

@ -13,7 +13,7 @@ const withProtectedRoutes = (Component) => {
window.location = '#/intro';
}
previousProfileRef.current = profile;
}, [profile])
}, [profile]);
const onRouteChange = React.useCallback((routeConfig) => {
if (profile.auth !== null && routeConfig.component === Intro) {
window.location.replace('#/');