Skip to content

Commit

Permalink
Chore: Force boolean
Browse files Browse the repository at this point in the history
  • Loading branch information
pramodsum committed Feb 27, 2018
1 parent 3c36f68 commit 40f7ca7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/viewers/BaseViewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -814,7 +814,7 @@ class BaseViewer extends EventEmitter {
const { can_annotate, can_view_annotations_all, can_view_annotations_self } = permissions;

// eslint-disable-next-line
return can_annotate || can_view_annotations_all || can_view_annotations_self;
return !!(can_annotate || can_view_annotations_all || can_view_annotations_self);
}

/**
Expand Down

0 comments on commit 40f7ca7

Please sign in to comment.