|
@@ -2,7 +2,7 @@ checkRoute();
|
|
|
|
|
|
let userBasics = JSON.parse(localStorage.getItem('user_profile')) || [];
|
|
let userBasics = JSON.parse(localStorage.getItem('user_profile')) || [];
|
|
if(userBasics !== []){
|
|
if(userBasics !== []){
|
|
- $('.userName').html(`<h2 class="user-name text-white mt-4 fw-bold">Hello,${userBasics.user_info.userName}</h2>`);
|
|
|
|
|
|
+ $('.userName').html(`<h2 class="user-name text-white mt-4 fw-bold">Hi ${userBasics.user_info.userName}</h2>`);
|
|
}
|
|
}
|
|
|
|
|
|
function checkRoute() {
|
|
function checkRoute() {
|
|
@@ -23,7 +23,7 @@ function checkRoute() {
|
|
window.location.replace("login.html");
|
|
window.location.replace("login.html");
|
|
}
|
|
}
|
|
var userName='';
|
|
var userName='';
|
|
- userName+=' <h2 class="user-name text-white mt-4 fw-bold">Hello,'+res.data.user_info.userName+'</h2>';
|
|
|
|
|
|
+ userName+=' <h2 class="user-name text-white mt-4 fw-bold">Hi '+res.data.user_info.userName+'</h2>';
|
|
$('.userName').html(userName);
|
|
$('.userName').html(userName);
|
|
}).catch(err => {
|
|
}).catch(err => {
|
|
console.log(err);
|
|
console.log(err);
|