1
0
mirror of https://github.com/nextcloud/ocsms.git synced 2026-08-11 16:32:55 +00:00

Avoid console errors if the input isn't a strong. (#261)

This commit is contained in:
Greg Ross
2018-07-09 14:46:37 -04:00
committed by Loïc Blot
parent 6505571221
commit afea0734e9
+4
View File
@@ -63,6 +63,10 @@ var ContactRenderer = {
}
},
generateFirstCharacter: function (input) {
if (typeof input !== 'string') {
return '?';
}
if (input.charAt(0) === '+') {
return '#';
}