Skip to content

Commit

Permalink
Merge pull request #479 from frank-weinberg/bugfix/end-of-game-display
Browse files Browse the repository at this point in the history
Fix displaying "(Un-) Official Score" at game end
  • Loading branch information
frank-weinberg authored Oct 4, 2020
2 parents 6bd2fb7 + b3a77a6 commit 23c28ac
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions html/views/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,15 +114,15 @@ function intermissionDisplay() {

if (num === 0) {
ret = WS.state['ScoreBoard.Settings.Setting(ScoreBoard.Intermission.PreGame)'];
} else if (num !== max) {
} else if (num != max) {
ret = WS.state['ScoreBoard.Settings.Setting(ScoreBoard.Intermission.Intermission)'];
} else if (!isOfficial) {
ret = WS.state['ScoreBoard.Settings.Setting(ScoreBoard.Intermission.Unofficial)'];
} else {
ret = WS.state['ScoreBoard.Settings.Setting(ScoreBoard.Intermission.Official)'];
}

$('.Clock.Intermission .Time').toggleClass('Hide', num === max);
$('.Clock.Intermission .Time').toggleClass('Hide', num == max);
return ret;
}

Expand All @@ -137,7 +137,7 @@ function toClockInitialNumber(k, v) {
ret = name.substring(0, 1) + number;
}

if (name === 'Period' && WS.state['ScoreBoard.Rulesets.CurrentRule(Period.Number)'] === 1) {
if (name === 'Period' && WS.state['ScoreBoard.Rulesets.CurrentRule(Period.Number)'] == 1) {
ret = 'Game';
}
}
Expand Down

0 comments on commit 23c28ac

Please sign in to comment.