guard against coercing `undefined` to a string

visible in the author's tooltip when author marks were enabled
for the document, but hidden by the local user
pull/1/head
ansuz 2020-04-22 15:09:27 -04:00
parent cf8841cdfa
commit c860819eb1
1 changed files with 1 additions and 1 deletions

View File

@ -46,7 +46,7 @@ define([
inclusiveRight: uid === Env.myAuthorId,
css: "background-color: " + rgba,
attributes: {
title: Env.opacity ? Messages._getKey('cba_writtenBy', [name]) : undefined,
title: Env.opacity ? Messages._getKey('cba_writtenBy', [name]) : '',
'data-type': 'authormark',
'data-uid': uid
}