From 819610f4f1e9b993ad2984b8e3b3949c0fa62f1d Mon Sep 17 00:00:00 2001 From: Hykilpikonna Date: Mon, 2 Dec 2019 22:30:50 -0500 Subject: [PATCH] [F] Multiple links didn't work --- src/logic/login-user.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/logic/login-user.ts b/src/logic/login-user.ts index 3b2fda5..9643e62 100644 --- a/src/logic/login-user.ts +++ b/src/logic/login-user.ts @@ -39,8 +39,8 @@ export default class LoginUser // Generate default avatar if (this.avatarUrl == null || this.avatarUrl == '') { - this.avatarUrl = [...this.emails.map(e => `https://www.gravatar.com/avatar/${md5(e)}?d=404`), - `https://ui-avatars.com/api/${this.firstName.charAt(0)}${this.lastName.charAt(0)}/128`].join(','); + this.avatarUrl = `https://www.gravatar.com/avatar/${md5(this.emails[0])}?d=404` + encodeURIComponent( + `https://ui-avatars.com/api/${this.firstName.charAt(0)}${this.lastName.charAt(0)}/128`); } } }