update user_id 8
This commit is contained in:
@ -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" }} />
|
||||
|
||||
Reference in New Issue
Block a user