@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@asaleh37/ui-base",
3
- "version": "25.8.15.1",
3
+ "version": "25.8.15.2",
4
4
  "description": "",
5
5
  "license": "ISC",
6
6
  "author": "Ahmed Saleh Mohamed",
@@ -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