it's working!

This commit is contained in:
Steffen 2021-05-06 21:59:12 +02:00
parent 3c250eff86
commit 37b61d90ef
No known key found for this signature in database
GPG Key ID: 764D74E98267DFC6
2 changed files with 5 additions and 3 deletions

View File

@ -2,8 +2,7 @@ name: Lint Code Base
on:
push:
branches-ignore:
- 'gh-pages'
branches: [ main ]
pull_request:
branches: [ main ]

View File

@ -163,7 +163,10 @@ export default {
if (nomination.includes(playerIndex)) {
// abort vote if removed player is either nominator or nominee
this.$store.commit("session/nomination");
} else if (nomination[0] > playerIndex || nomination[1] > playerIndex) {
} else if (
nomination[0] > playerIndex ||
nomination[1] > playerIndex
) {
// update nomination array if removed player has lower index
this.$store.commit("session/setNomination", [
nomination[0] > playerIndex ? nomination[0] - 1 : nomination[0],