mirror of https://github.com/bra1n/townsquare.git
let's try adding a lint error
This commit is contained in:
parent
71234f3ef9
commit
0f71e49898
|
@ -163,10 +163,7 @@ 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 (
|
} else if (nomination[0] > playerIndex || nomination[1] > playerIndex) {
|
||||||
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