]> git.sesse.net Git - ultimatescore/commitdiff
Typofix.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Wed, 21 Feb 2018 17:42:16 +0000 (18:42 +0100)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Wed, 21 Feb 2018 17:42:16 +0000 (18:42 +0100)
carousel.js

index 4d8e2ec27ec4b04329777ba10570494fcc0f3128..fcf5cc5178862d82dc88ebfbd1db9e47686e0c0c 100644 (file)
@@ -192,7 +192,7 @@ function rank(games, teams, start_rank, tiebreakers) {
                let idx1 = teams_to_idx[games[i].name1];
                let idx2 = teams_to_idx[games[i].name2];
                if (idx1 !== undefined && idx2 !== undefined &&
-                   !isNaN(games[i].score1) && isNaN(games[i].score2)) {
+                   !isNaN(games[i].score1) && !isNaN(games[i].score2)) {
                        teams[idx1].h2h_gd += games[i].score1;
                        teams[idx1].h2h_gd -= games[i].score2;
                        teams[idx2].h2h_gd += games[i].score2;