Fix initials avatar generation (#577)

The ES5 reduce method also needs a initial value. This bug was
introduced in aa974aa54a.
This commit is contained in:
Alexander Sulfrian 2016-04-21 19:24:08 +02:00 committed by Maxime Quandalle
parent 90428e7ba1
commit 3a0a9fa009

View file

@ -68,9 +68,9 @@ Users.helpers({
return profile.initials;
else if (profile.fullname) {
return profile.fullname.split(/\s+/).reduce((memo = '', word) => {
return profile.fullname.split(/\s+/).reduce((memo, word) => {
return memo + word[0];
}).toUpperCase();
}, '').toUpperCase();
} else {
return this.username[0].toUpperCase();