Skip to content

Commit

Permalink
Return consistent type from isHidden
Browse files Browse the repository at this point in the history
Return boolean instead of number in all cases.
  • Loading branch information
robertknight committed Apr 4, 2017
1 parent 22240a3 commit ab01aee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sidebar/components/moderation-banner.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ function ModerationBannerController(annotationUI, flash, store) {
this.isHidden = function () {
var moderation = self.annotation.moderation;
if (!moderation) {
return 0;
return false;
}
return moderation.is_hidden;
};
Expand Down

0 comments on commit ab01aee

Please sign in to comment.