|
@@ -15,8 +15,10 @@ let userBasics = JSON.parse(localStorage.getItem('user_profile')) || [];
|
|
|
function checkLocal() {
|
|
|
if(userBasics.length == 0){ return };
|
|
|
//userBasics = JSON.parse(userBasics);
|
|
|
- console.log(userBasics);
|
|
|
- //$('.userName').html(`<h2 class="user-name text-white mt-4 fw-bold">Hi ${userBasics.user_info.userName}</h2>`);
|
|
|
+ if(userBasics !== [] && typeof(userBasics) !== 'string') {
|
|
|
+ console.log(typeof(userBasics));
|
|
|
+ $('.userName').html(`<h2 class="user-name text-white mt-4 fw-bold">Hi ${userBasics.user_info.userName}</h2>`);
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
$('.dropdown-toggle').click(() => {
|
|
@@ -24,7 +26,7 @@ $('.dropdown-toggle').click(() => {
|
|
|
checkLan();
|
|
|
});
|
|
|
|
|
|
-//checkLocal();
|
|
|
+checkLocal();
|
|
|
|
|
|
function checkLan() {
|
|
|
if(lan == 'en') {
|