Fix the username icon hcih was not working anymore

This commit is contained in:
yflory 2016-10-05 18:19:52 +02:00
parent 8575f3f79f
commit c322aa440e

View File

@ -743,7 +743,7 @@ define([
'class': "fa fa-user", 'class': "fa fa-user",
style: 'font:'+size+' FontAwesome' style: 'font:'+size+' FontAwesome'
}); });
if (data && data.lastName && callback) { if (data && typeof data.lastName !== "undefined" && callback) {
var lastName = data.lastName; var lastName = data.lastName;
button.click(function() { button.click(function() {
common.prompt(Messages.changeNamePrompt, lastName, function (newName) { common.prompt(Messages.changeNamePrompt, lastName, function (newName) {