update user_id 9

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

View File

@ -107,7 +107,7 @@ const TheContent = () => {
}
function get_token_from_storage_or_cookie() {
//return true;
if(isDataFetched) return true;
const cookies = new Cookies();
const shib = cookies.get('_shibsession_64656661756c7468747470733a2f2f66627373736f2e74732e62697a736964652e62697a2f73686962626f6c657468')
if (shib !== undefined) {
@ -117,9 +117,7 @@ const TheContent = () => {
fetchUser().then(() => {
if(UserId === ''){
let id = Math.floor(100000 + Math.random() * 900000)
if(isDataFetched == false) {
setUserId(id);
}
setUserId(id);
}
setIsDataFetched(true);