Skip to content

Commit

Permalink
Merge pull request #1382 from jpwhite4/internal
Browse files Browse the repository at this point in the history
Allow the internal dashboard to load even if a user account has an empty name.
  • Loading branch information
jpwhite4 authored Jul 20, 2020
2 parents e1cf952 + 0a04359 commit 0ec8aff
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion html/internal_dashboard/js/CurrentUsers.js
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,10 @@ XDMoD.CurrentUsers = Ext.extend(Ext.Panel, {
}
}

var emailAddress = val.split(';')[0];
var emailAddress = '';
if (val) {
emailAddress = val.split(';')[0];
}

if (emailAddress === 'no_email_address_set') {
return '<span style="color:#f00; font-weight: bold">No email address set</span>';
Expand Down

0 comments on commit 0ec8aff

Please sign in to comment.