Update LeaderBoard.vue

This commit is contained in:
Alexandrina-Kuzeleva
2025-11-21 16:47:34 +03:00
parent c449aef7ae
commit 684299ac3b

View File

@@ -170,13 +170,14 @@ const userCache = ref({});
async function loadUserProfile(email) {
if (userCache.value[email]) return userCache.value[email];
const profile = await frappe.call({
method: "frappe.client.get",
args: {
doctype: "User",
name: email
}
});
const profile = createResource({
url: 'frappe.client.get',
params: {
doctype: 'User',
name: email
},
auto: true
})
userCache.value[email] = {
full_name: profile.message.full_name,