mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-19 07:37:25 +01:00
small fix for sanity
This commit is contained in:
@@ -24,9 +24,9 @@ habitrpg.controller("RootCtrl", ['$scope', '$rootScope', '$location', 'User', '$
|
|||||||
// styling helpers
|
// styling helpers
|
||||||
$scope.userLevelStyle = function(user,style){
|
$scope.userLevelStyle = function(user,style){
|
||||||
style = style || '';
|
style = style || '';
|
||||||
if(user.backer.npc)
|
if(user && user.backer && user.backer.npc)
|
||||||
style += ' label-npc';
|
style += ' label-npc';
|
||||||
if(user.contributor.level)
|
if(user && user.contributor && user.contributor.level)
|
||||||
style += ' label-contributor-'+user.contributor.level;
|
style += ' label-contributor-'+user.contributor.level;
|
||||||
return style;
|
return style;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user