mirror of https://github.com/bra1n/townsquare.git
it's working!
This commit is contained in:
parent
3c250eff86
commit
37b61d90ef
|
@ -2,8 +2,7 @@ name: Lint Code Base
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches-ignore:
|
branches: [ main ]
|
||||||
- 'gh-pages'
|
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ main ]
|
branches: [ main ]
|
||||||
|
|
||||||
|
|
|
@ -163,7 +163,10 @@ export default {
|
||||||
if (nomination.includes(playerIndex)) {
|
if (nomination.includes(playerIndex)) {
|
||||||
// abort vote if removed player is either nominator or nominee
|
// abort vote if removed player is either nominator or nominee
|
||||||
this.$store.commit("session/nomination");
|
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
|
// update nomination array if removed player has lower index
|
||||||
this.$store.commit("session/setNomination", [
|
this.$store.commit("session/setNomination", [
|
||||||
nomination[0] > playerIndex ? nomination[0] - 1 : nomination[0],
|
nomination[0] > playerIndex ? nomination[0] - 1 : nomination[0],
|
||||||
|
|
Loading…
Reference in New Issue