File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 101
101
return stageNames[getNextStage (this .$store .state .matchState .stage )];
102
102
},
103
103
showEndGame () {
104
- return canEndGameFromStage (this .$store .state .matchState . stage );
104
+ return canEndGameFromStage (this .$store .state .matchState );
105
105
},
106
106
preStage () {
107
107
return isPreStage (this .$store .state .matchState );
Original file line number Diff line number Diff line change @@ -29,9 +29,9 @@ export let getNextStage = function (stage) {
29
29
return stage ;
30
30
} ;
31
31
32
- export let canEndGameFromStage = function ( stage ) {
32
+ export let canEndGameFromStage = function ( state ) {
33
33
// Games can always end when a team has scored 10 goals, so we only restrict it to non paused stages
34
- return isNonPausedStage ( stage ) ;
34
+ return isNonPausedStage ( state ) ;
35
35
} ;
36
36
37
37
export let isNonPausedStage = function ( state ) {
You can’t perform that action at this time.
0 commit comments