Fix an issue with the star counter

This commit is contained in:
Maxime Quandalle 2015-09-05 23:14:24 +02:00
parent 82b3227778
commit 559de5602c

View file

@ -43,7 +43,7 @@ BlazeComponent.extendComponent({
// Only show the star counter if the number of star is greater than 2
showStarCounter() {
const currentBoard = this.currentData();
const currentBoard = Boards.findOne(Session.get('currentBoard'));
return currentBoard && currentBoard.stars >= 2;
},