Skip to content

Commit

Permalink
fix: initials don't get displayed if Gravatar avatar doesn't exist
Browse files Browse the repository at this point in the history
  • Loading branch information
stonith404 committed Oct 3, 2024
1 parent 08f7fd1 commit e095628
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/lib/components/header/header-avatar.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
let gravatarURL: string | undefined = $state();
if ($userStore) {
createSHA256hash($userStore.email).then((email) => {
gravatarURL = `https://www.gravatar.com/avatar/${email}`;
gravatarURL = `https://www.gravatar.com/avatar/${email}?d=404`;
});
}
Expand Down

0 comments on commit e095628

Please sign in to comment.