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();
|
||||
otherNight.sort();
|
||||
newPlayers.forEach(player => {
|
||||
player.firstNight = Math.max(firstNight.indexOf(player.role.firstNight), 0);
|
||||
player.otherNight = Math.max(otherNight.indexOf(player.role.otherNight), 0);
|
||||
player.firstNight = Math.max(
|
||||
firstNight.indexOf(player.role.firstNight),
|
||||
0
|
||||
);
|
||||
player.otherNight = Math.max(
|
||||
otherNight.indexOf(player.role.otherNight),
|
||||
0
|
||||
);
|
||||
});
|
||||
localStorage.players = JSON.stringify(
|
||||
newPlayers.map(player => ({
|
||||
|
|
Loading…
Reference in New Issue