fixed fabled roles breaking night order modal (fixes #112)

This commit is contained in:
Steffen 2021-02-04 12:11:40 +01:00
parent 142968bf8a
commit 484f9f0e63
1 changed files with 2 additions and 2 deletions

View File

@ -121,7 +121,7 @@ export default {
this.fabled
.filter(({ firstNight }) => firstNight)
.forEach(fabled => {
rolesFirstNight.push(fabled);
rolesFirstNight.push(Object.assign({ players: [] }, fabled));
});
rolesFirstNight.sort((a, b) => a.firstNight - b.firstNight);
return rolesFirstNight;
@ -137,7 +137,7 @@ export default {
this.fabled
.filter(({ otherNight }) => otherNight)
.forEach(fabled => {
rolesOtherNight.push(fabled);
rolesOtherNight.push(Object.assign({ players: [] }, fabled));
});
rolesOtherNight.sort((a, b) => a.otherNight - b.otherNight);
return rolesOtherNight;