diff --git a/src/App.vue b/src/App.vue index 9395c83..2e431c2 100644 --- a/src/App.vue +++ b/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 => ({