Ryan Helsing пре 8 година
родитељ
комит
3fbce6dfd2
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      client/components/sidebar/sidebar.js

+ 2 - 2
client/components/sidebar/sidebar.js

@@ -121,9 +121,9 @@ Template.memberPopup.helpers({
   },
   },
   memberType() {
   memberType() {
     const type = Users.findOne(this.userId).isBoardAdmin() ? 'admin' : 'normal';
     const type = Users.findOne(this.userId).isBoardAdmin() ? 'admin' : 'normal';
-    if(type == 'normal'){
+    if(type === 'normal'){
       const currentBoard = Boards.findOne(Session.get('currentBoard'));
       const currentBoard = Boards.findOne(Session.get('currentBoard'));
-      const commentOnly = currentBoard.hasCommentOnly(this.userId)
+      const commentOnly = currentBoard.hasCommentOnly(this.userId);
       if(commentOnly){
       if(commentOnly){
         return TAPi18n.__('comment-only').toLowerCase();
         return TAPi18n.__('comment-only').toLowerCase();
       } else {
       } else {