mirror of https://github.com/bra1n/townsquare.git
fixed fabled roles breaking night order modal (fixes #112)
This commit is contained in:
parent
6026a6e8e8
commit
65c959e07f
|
@ -131,7 +131,7 @@ export default {
|
||||||
this.fabled
|
this.fabled
|
||||||
.filter(({ firstNight }) => firstNight)
|
.filter(({ firstNight }) => firstNight)
|
||||||
.forEach(fabled => {
|
.forEach(fabled => {
|
||||||
rolesFirstNight.push(fabled);
|
rolesFirstNight.push(Object.assign({ players: [] }, fabled));
|
||||||
});
|
});
|
||||||
rolesFirstNight.sort((a, b) => a.firstNight - b.firstNight);
|
rolesFirstNight.sort((a, b) => a.firstNight - b.firstNight);
|
||||||
return rolesFirstNight;
|
return rolesFirstNight;
|
||||||
|
@ -147,7 +147,7 @@ export default {
|
||||||
this.fabled
|
this.fabled
|
||||||
.filter(({ otherNight }) => otherNight)
|
.filter(({ otherNight }) => otherNight)
|
||||||
.forEach(fabled => {
|
.forEach(fabled => {
|
||||||
rolesOtherNight.push(fabled);
|
rolesOtherNight.push(Object.assign({ players: [] }, fabled));
|
||||||
});
|
});
|
||||||
rolesOtherNight.sort((a, b) => a.otherNight - b.otherNight);
|
rolesOtherNight.sort((a, b) => a.otherNight - b.otherNight);
|
||||||
return rolesOtherNight;
|
return rolesOtherNight;
|
||||||
|
|
Loading…
Reference in New Issue