mirror of https://github.com/bra1n/townsquare.git
eslint
This commit is contained in:
parent
2df32af266
commit
7d8c8878ff
10
src/App.vue
10
src/App.vue
|
@ -236,8 +236,14 @@ export default {
|
||||||
firstNight.sort();
|
firstNight.sort();
|
||||||
otherNight.sort();
|
otherNight.sort();
|
||||||
newPlayers.forEach(player => {
|
newPlayers.forEach(player => {
|
||||||
player.firstNight = Math.max(firstNight.indexOf(player.role.firstNight), 0);
|
player.firstNight = Math.max(
|
||||||
player.otherNight = Math.max(otherNight.indexOf(player.role.otherNight), 0);
|
firstNight.indexOf(player.role.firstNight),
|
||||||
|
0
|
||||||
|
);
|
||||||
|
player.otherNight = Math.max(
|
||||||
|
otherNight.indexOf(player.role.otherNight),
|
||||||
|
0
|
||||||
|
);
|
||||||
});
|
});
|
||||||
localStorage.players = JSON.stringify(
|
localStorage.players = JSON.stringify(
|
||||||
newPlayers.map(player => ({
|
newPlayers.map(player => ({
|
||||||
|
|
Loading…
Reference in New Issue