From cd32442088f79b9a31bcdbb505ba8c7c117506f4 Mon Sep 17 00:00:00 2001 From: MRegnard <62838312+MRegnard@users.noreply.github.com> Date: Tue, 26 Sep 2023 10:05:32 +0200 Subject: [PATCH] Adding a forgotten change for the new version --- src/store/modules/players.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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); } });