We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cf79b41 commit a782b04Copy full SHA for a782b04
1 file changed
layouts/partials/navbar.html
@@ -327,11 +327,7 @@
327
function getAvatarUrl(response) {
328
const avatarUrl = response?.avatarUrl;
329
330
- if (typeof avatarUrl === "string" && avatarUrl.trim()) {
331
- return avatarUrl.trim();
332
- }
333
-
334
- return "";
+ return (typeof avatarUrl === 'string' && avatarUrl.trim()) || '';
335
}
336
337
function getUserProfileUrl(response) {
0 commit comments