Skip to content

Commit 220d6b6

Browse files
committed
minor
1 parent eaa8944 commit 220d6b6

File tree

1 file changed

+3
-4
lines changed
  • services/static-webserver/client/source/class/osparc/utils

1 file changed

+3
-4
lines changed

services/static-webserver/client/source/class/osparc/utils/Avatar.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ qx.Class.define("osparc.utils.Avatar", {
4040

4141
__getUrl: function(email, username, size = 100) {
4242
if (email == null) {
43-
return `https://ui-avatars.com/api/${username}/${size}`;
43+
email = "";
4444
}
4545
// MD5 (Message-Digest Algorithm) by WebToolkit
4646
const MD5 = function(s) {
@@ -261,9 +261,8 @@ qx.Class.define("osparc.utils.Avatar", {
261261
};
262262

263263
const emailHash = MD5(email);
264-
const defaultImageUrl = `https://ui-avatars.com/api/${username}/${size}/`;
265-
// return `https://www.gravatar.com/avatar/${emailHash}?d=${defaultImageUrl}&s=${size}&r=g`;
266-
return `https://www.gravatar.com/avatar/${emailHash}?d=${defaultImageUrl}&s=${size}`;
264+
const defaultImageUrl = `https://ui-avatars.com/api/${username}/${size}`;
265+
return `https://www.gravatar.com/avatar/${emailHash}?d=${defaultImageUrl}&s=${size}&r=g`;
267266
},
268267
}
269268
});

0 commit comments

Comments
 (0)