Skip to content

Commit cf79b41

Browse files
committed
fix: use avatarUrl instead of avatar_url to match API response
Signed-off-by: Sbragul26 <sbragul26@gmail.com>
1 parent caee016 commit cf79b41

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

layouts/partials/navbar.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@
325325
}
326326
};
327327
function getAvatarUrl(response) {
328-
const avatarUrl = response?.avatarUrl || response?.avatar_url;
328+
const avatarUrl = response?.avatarUrl;
329329

330330
if (typeof avatarUrl === "string" && avatarUrl.trim()) {
331331
return avatarUrl.trim();
@@ -335,7 +335,7 @@
335335
}
336336

337337
function getUserProfileUrl(response) {
338-
const userId = response?.id ?? response?.userId ?? response?.user_id;
338+
const userId = response?.id;
339339
if (userId) {
340340
return `${cloudAppUrl}/user/${encodeURIComponent(userId)}`;
341341
}

0 commit comments

Comments
 (0)