Don't display 'Hello null' if we can't get the account name

This commit is contained in:
yflory
2017-02-03 10:48:15 +01:00
parent 8648ff208e
commit 46b48df966
3 changed files with 7 additions and 1 deletions

View File

@@ -35,7 +35,11 @@ define([
var $hello = $loggedInBlock.find('#loggedInHello');
var $logout = $loggedInBlock.find('#loggedInLogOut');
$hello.text(Messages._getKey('login_hello', [name]));
if (name) {
$hello.text(Messages._getKey('login_hello', [name]));
} else {
$hello.text(Messages.login_helloNoName);
}
$('#buttons').find('.nologin').hide();
$logout.click(function () {