From 00d5a2a6b06106740b42970d8975b4b73c0968f7 Mon Sep 17 00:00:00 2001 From: Anand Chowdhary Date: Sun, 12 May 2019 12:58:42 +0200 Subject: [PATCH] :bug: Fix Gravatar fallback user initials image --- src/crud/user.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/crud/user.ts b/src/crud/user.ts index a52b6f61a..126be6b73 100644 --- a/src/crud/user.ts +++ b/src/crud/user.ts @@ -100,7 +100,7 @@ export const updateUser = async (id: number, user: KeyValue) => { user.profilePicture = `https://www.gravatar.com/avatar/${md5( emailDetails.email )}?d=${encodeURIComponent( - `https://ui-avatars.com/api/?bold=true&name=${user.name}` + `https://ui-avatars.com/api/?bold=true&name=${originalUser.name}` )}`; } }