mirror of
https://github.com/nikdoof/pocket-id.git
synced 2025-12-13 14:52:18 +00:00
fix: initials don't get displayed if Gravatar avatar doesn't exist
This commit is contained in:
@@ -15,7 +15,7 @@
|
|||||||
let gravatarURL: string | undefined = $state();
|
let gravatarURL: string | undefined = $state();
|
||||||
if ($userStore) {
|
if ($userStore) {
|
||||||
createSHA256hash($userStore.email).then((email) => {
|
createSHA256hash($userStore.email).then((email) => {
|
||||||
gravatarURL = `https://www.gravatar.com/avatar/${email}`;
|
gravatarURL = `https://www.gravatar.com/avatar/${email}?d=404`;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user