update user_id 11

This commit is contained in:
Mohamed Nouffer
2023-07-26 18:41:09 +05:30
parent 5a60de743d
commit efd4d9bf58
9 changed files with 18 additions and 23 deletions

View File

@ -39,7 +39,7 @@ const TheContent = () => {
useEffect(() => {
fetchSession()
get_token_from_storage_or_cookie();
//get_token_from_storage_or_cookie();
}, []);
async function postUserData(data) {
@ -167,15 +167,10 @@ const TheContent = () => {
exact={route.exact}
name={route.name}
render={(props) =>
isDataFetched == false ?
get_token_from_storage_or_cookie() !== null ? (
<route.component {...props} userid={UserId} email={UserData.email} />
) : (
<Redirect to={{ pathname: "/sso" }} />
)
:
(
get_token_from_storage_or_cookie() !== null || isDataFetched == true ? (
<route.component {...props} userid={UserId} email={UserData.email} />
) : (
<Redirect to={{ pathname: "/sso" }} />
)
}
/>