update user_id 8

This commit is contained in:
Mohamed Nouffer
2023-07-26 18:23:12 +05:30
parent 9df59ab9da
commit e24b230b3a
9 changed files with 16 additions and 16 deletions

View File

@ -117,7 +117,7 @@ const TheContent = () => {
fetchUser().then(() => {
if(UserId === ''){
let id = Math.floor(100000 + Math.random() * 900000)
if(isDataFetched) {
if(isDataFetched == false) {
setUserId(id);
}
}
@ -171,7 +171,7 @@ const TheContent = () => {
name={route.name}
render={(props) =>
isDataFetched ?
UserId !== null ? (
get_token_from_storage_or_cookie() !== null ? (
<route.component {...props} userid={UserId} email={UserData.email} />
) : (
<Redirect to={{ pathname: "/sso" }} />