mirror of
https://github.com/element-hq/element-web
synced 2024-11-27 03:36:07 +03:00
Add trace as well
This commit is contained in:
parent
e7fdc5002e
commit
762e0111fb
1 changed files with 6 additions and 1 deletions
|
@ -67,7 +67,12 @@ module.exports = {
|
|||
* @return {string} the first letter
|
||||
*/
|
||||
getInitialLetter(name) {
|
||||
if (!name || name.length < 1) {
|
||||
if (!name) {
|
||||
// XXX: We should find out what causes the name to sometimes be falsy.
|
||||
console.trace("`name` argument to `getInitialLetter` not supplied");
|
||||
return undefined;
|
||||
}
|
||||
if (name.length < 1) {
|
||||
return undefined;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue