@asaleh37/ui-base 25.8.1-5.1 → 25.8.1-5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/components/common/Login.tsx +3 -7
package/package.json
CHANGED
|
@@ -124,15 +124,11 @@ const Login: React.FC = () => {
|
|
|
124
124
|
}
|
|
125
125
|
};
|
|
126
126
|
useEffect(() => {
|
|
127
|
+
console.log("checking usersession on reload", userSession);
|
|
128
|
+
console.log("checking usersession app info", appInfo);
|
|
127
129
|
checkUserSession();
|
|
128
|
-
}, [appInfo]);
|
|
130
|
+
}, [appInfo, userSession.isAuthenticated]);
|
|
129
131
|
|
|
130
|
-
useEffect(() => {
|
|
131
|
-
if (userSession.isAuthenticated === null) {
|
|
132
|
-
console.log("checking usersession on reload", userSession);
|
|
133
|
-
checkUserSession();
|
|
134
|
-
}
|
|
135
|
-
}, [userSession.isAuthenticated]);
|
|
136
132
|
return (
|
|
137
133
|
<ThemeProvider theme={loginTheme}>
|
|
138
134
|
<Paper
|