diff --git a/www/common/cryptpad-common.js b/www/common/cryptpad-common.js index edae7673b..5a4220f3c 100644 --- a/www/common/cryptpad-common.js +++ b/www/common/cryptpad-common.js @@ -743,7 +743,7 @@ define([ 'class': "fa fa-user", style: 'font:'+size+' FontAwesome' }); - if (data && data.lastName && callback) { + if (data && typeof data.lastName !== "undefined" && callback) { var lastName = data.lastName; button.click(function() { common.prompt(Messages.changeNamePrompt, lastName, function (newName) {