From e6f6d97706538a174b9f3e0539ed68ca4d28cc71 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Wed, 21 Feb 2018 18:42:16 +0100 Subject: [PATCH] Typofix. --- carousel.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/carousel.js b/carousel.js index 4d8e2ec..fcf5cc5 100644 --- a/carousel.js +++ b/carousel.js @@ -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; -- 2.39.2