Merge pull request #3339 from thepeopleseason/blank-notifications

fix(notifications): eliminate blank notifications
This commit is contained in:
Tyler Renelle 2014-04-23 14:50:26 -06:00
commit 20b2fb9fd2

View file

@ -58,7 +58,9 @@ angular.module("notificationServices", [])
notify(sign(val) + " " + coins(val - bonus), 'gp');
},
text: function(val){
notify(val, 'info');
if (val) {
notify(val, 'info');
}
},
lvl: function(){
notify(window.env.t('levelUp'), 'lvl', 'glyphicon glyphicon-chevron-up');