making reminders work with plus 1 bluffs

This commit is contained in:
Dave 2023-05-27 18:32:39 +01:00
parent 6ed2d1e109
commit 971f7182ef
2 changed files with 3 additions and 1 deletions

View file

@ -88,6 +88,8 @@ export default {
this.$store.state.otherRoles.forEach((role) => {
if (players.some((p) => p.role.id === role.id)) {
reminders = [...reminders, ...role.reminders.map(mapReminder(role))];
} else if (bluffs.some((bluff) => bluff.id === role.id)) {
reminders = [...reminders, ...role.reminders.map(mapReminder(role))];
}
});

View file

@ -88,7 +88,6 @@ export default {
var filteredRoles = this.otherRoles.filter((role) => {
return role.name.toLowerCase().includes(this.filter.toLowerCase());
});
console.log(filteredRoles);
return filteredRoles;
},
availableRoles() {
@ -141,6 +140,7 @@ export default {
},
close() {
this.tab = "editionRoles";
this.filter = "";
this.toggleModal("role");
},
...mapMutations(["toggleModal"]),