From 1bfdd3d5434f2c0c17e6b458dc426f41ebf20876 Mon Sep 17 00:00:00 2001 From: Maschell Date: Sun, 31 Dec 2017 16:54:30 +0100 Subject: [PATCH] Fixed the graph for races where somebody retired in the first lap --- js/diagrams.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/diagrams.js b/js/diagrams.js index 417baf3..a903dd5 100644 --- a/js/diagrams.js +++ b/js/diagrams.js @@ -521,7 +521,7 @@ function createLineGraph(containerId, raceData){ break; } _lap--; - if(_lap < 0) break; + if(_lap <= 0) break; } }else{ if(raceData.lapTimes.get(lapNr)[pos-1]){