Skip to content

Commit 6ad4e2c

Browse files
Merge pull request #1013 from Sbragul26/fix/avatar-url-field-mismatch
[Docs] Fix/avatar url field mismatch
2 parents 09e9cc7 + 93437eb commit 6ad4e2c

1 file changed

Lines changed: 2 additions & 8 deletions

File tree

layouts/partials/navbar.html

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -325,15 +325,9 @@
325325
}
326326
};
327327
function getAvatarUrl(response) {
328-
if (
329-
response &&
330-
typeof response.avatar_url === "string" &&
331-
response.avatar_url.trim()
332-
) {
333-
return response.avatar_url.trim();
334-
}
328+
const avatarUrl = response?.avatarUrl;
335329

336-
return "";
330+
return (typeof avatarUrl === 'string' && avatarUrl.trim()) || '';
337331
}
338332

339333
function getUserProfileUrl(response) {

0 commit comments

Comments
 (0)