Work should be removed when 'done', fixed #47

This commit is contained in:
Kenneth Jao 2016-08-27 01:11:37 -04:00
parent dddfe53c59
commit 96e413f005

View File

@ -130,6 +130,10 @@ Template.registerHelper('myClasses', () => {
j = 0;
}
}
if(thisWork[j] !== "no" && thisWork[j].done.indexOf(Meteor.userId()) !== -1) {
thisWork[j] = "no";
j = 0;
}
}
while(thisWork.indexOf("no") !== -1) thisWork.splice(thisWork.indexOf("no"),1);