Bingo only if number of ballots is large than 1

This commit is contained in:
2020-01-23 13:46:09 +01:00
parent 11a35ccb90
commit d66f097dc6

View File

@@ -94,7 +94,7 @@ export default {
methods: {
generateColors: function(event, time) {
if (time == 5) {
if (new Set(this.colors).size == 1) {
if (this.numberOfBallots > 1 && new Set(this.colors).size == 1) {
alert('BINGO')
}