fix(warnings): Show modal only once

Also removes a random extra newline.
This commit is contained in:
Sabe Jones
2015-09-03 11:12:54 -04:00
parent d29c7ff1bb
commit b5124e6cd8
3 changed files with 5 additions and 2 deletions

View File

@@ -44,7 +44,7 @@ habitrpg.controller("UserCtrl", ['$rootScope', '$scope', '$location', 'User', '$
}
$scope.acknowledgeHealthWarning = function(){
User.user.ops.update && User.set({'flags.warnedLowHealth':false});
User.user.ops.update && User.set({'flags.warnedLowHealth':true});
}
/**