From 37b61d90ef50b03d4fcc4b37d10b9c94ca3cbe9a Mon Sep 17 00:00:00 2001 From: Steffen Date: Thu, 6 May 2021 21:59:12 +0200 Subject: [PATCH] it's working! --- .github/workflows/linter.yml | 3 +-- src/components/TownSquare.vue | 5 ++++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml index 5efc82f..4c450bf 100644 --- a/.github/workflows/linter.yml +++ b/.github/workflows/linter.yml @@ -2,8 +2,7 @@ name: Lint Code Base on: push: - branches-ignore: - - 'gh-pages' + branches: [ main ] pull_request: branches: [ main ] diff --git a/src/components/TownSquare.vue b/src/components/TownSquare.vue index 3138169..4c34249 100644 --- a/src/components/TownSquare.vue +++ b/src/components/TownSquare.vue @@ -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],