diff --git a/erpnext/public/js/education/lms/components/Navbar.vue b/erpnext/public/js/education/lms/components/Navbar.vue index 69445c1116d..7cd64b2577c 100644 --- a/erpnext/public/js/education/lms/components/Navbar.vue +++ b/erpnext/public/js/education/lms/components/Navbar.vue @@ -54,8 +54,8 @@ export default { data() { return{ portal: {}, - avatar: frappe.get_cookie("user_image"), - fullName: frappe.get_cookie("full_name"), + avatar: frappe.user_image, + fullName: frappe.full_name, isLogin: frappe.is_user_logged_in() } }, diff --git a/erpnext/public/js/education/lms/components/ProfileInfo.vue b/erpnext/public/js/education/lms/components/ProfileInfo.vue index a6118a0ccc5..72afdd0378c 100644 --- a/erpnext/public/js/education/lms/components/ProfileInfo.vue +++ b/erpnext/public/js/education/lms/components/ProfileInfo.vue @@ -49,8 +49,8 @@ export default { name: "ProfileInfo", data() { return { - avatar: frappe.get_cookie("user_image"), - fullName: frappe.get_cookie("full_name"), + avatar: frappe.user_image, + fullName: frappe.full_name, abbr: frappe.get_abbr(frappe.get_cookie("full_name")), email: frappe.session.user, joiningDate: 'fetching...'