Skip to content

Commit

Permalink
Small bug fix for endgame.
Browse files Browse the repository at this point in the history
  • Loading branch information
kyle-flynn committed Aug 9, 2018
1 parent 0d8430c commit 77e48ca
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion ems-core/package.electron.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "ems-core",
"author": "The Orange Alliance",
"description": "An improved event experience.",
"version": "2.1.5",
"version": "2.1.6",
"private": true,
"main": "public/desktop/electron.js",
"homepage": "./public/desktop/"
Expand Down
2 changes: 1 addition & 1 deletion ems-core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ems-core",
"version": "2.1.5",
"version": "2.1.6",
"private": true,
"main": "public/electron.js",
"dependencies": {
Expand Down
1 change: 1 addition & 0 deletions ems-core/src/views/match-play/containers/MatchPlay.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,7 @@ class MatchPlay extends React.Component<IProps, IState> {
for (const match of this.getMatchesByTournamentLevel(this.state.selectedLevel)) {
if (match.matchKey === (props.value as string)) {
this.props.setActiveMatch(match);
this.setState({activeMatch: match});
// Temporarily set the match to what we have now, and then get ALL the details.
MatchFlowController.getMatchResults(match.matchKey).then((data: Match) => {
this.props.setActiveMatch(data);
Expand Down
6 changes: 3 additions & 3 deletions ems-socket/src/scoring/MatchTimer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,13 +107,13 @@ export default class MatchTimer extends events.EventEmitter {
}
}
} else {
this._modeTimeLeft--;
this._timeLeft--;

if (this.endTime > 0 && this._timeLeft === this.endTime) {
this.emit("match-endgame");
logger.info("Endgame started.")
}

this._modeTimeLeft--;
this._timeLeft--;
}
}

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "event-management-system",
"description": "Hub for all programs in the EMS suite.",
"version": "2.1.5",
"version": "2.1.6",
"private": true,
"scripts": {
"api": "cd ems-api/ && npm start",
Expand Down

0 comments on commit 77e48ca

Please sign in to comment.