We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 09e9cc7 + 93437eb commit 6ad4e2cCopy full SHA for 6ad4e2c
1 file changed
layouts/partials/navbar.html
@@ -325,15 +325,9 @@
325
}
326
};
327
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
- }
+ const avatarUrl = response?.avatarUrl;
335
336
- return "";
+ return (typeof avatarUrl === 'string' && avatarUrl.trim()) || '';
337
338
339
function getUserProfileUrl(response) {
0 commit comments