Fix the stars

Fixes #214
This commit is contained in:
Maxime Quandalle 2015-08-23 22:00:02 +02:00
parent f03fee5162
commit 9bea6a52d3
5 changed files with 17 additions and 28 deletions

View file

@ -29,9 +29,9 @@ BlazeComponent.extendComponent({
},
isStarred: function() {
var currentBoard = this.currentData();
var boardId = Session.get('currentBoard');
var user = Meteor.user();
return currentBoard && user && user.hasStarred(currentBoard._id);
return user && user.hasStarred(boardId);
},
// Only show the star counter if the number of star is greater than 2