diff --git a/src/store/modules/players.js b/src/store/modules/players.js index d60e094..1e81619 100644 --- a/src/store/modules/players.js +++ b/src/store/modules/players.js @@ -29,18 +29,18 @@ const getters = { const firstNight = [0]; const otherNight = [0]; fabled.forEach(role => { - if (role.firstNight && !firstNight.includes(role.firstNight)) { + if (role.firstNight && !firstNight.includes(role)) { firstNight.push(role); } - if (role.otherNight && !otherNight.includes(role.otherNight)) { + if (role.otherNight && !otherNight.includes(role)) { otherNight.push(role); } }); players.forEach(({ role }) => { - if (role.firstNight && !firstNight.includes(role.firstNight)) { + if (role.firstNight && !firstNight.includes(role)) { firstNight.push(role); } - if (role.otherNight && !otherNight.includes(role.otherNight)) { + if (role.otherNight && !otherNight.includes(role)) { otherNight.push(role); } });