From 6d7ced61fbfeaded6cfd6137298f28f0a2400994 Mon Sep 17 00:00:00 2001 From: Ignacio Date: Fri, 29 Sep 2023 19:17:30 +0200 Subject: [PATCH] fixed pourchaire bug --- front/js/head2head.js | 17 +++++++++++------ launcher/version.conf | 2 +- 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/front/js/head2head.js b/front/js/head2head.js index 4ea65174..20d7e714 100644 --- a/front/js/head2head.js +++ b/front/js/head2head.js @@ -264,18 +264,23 @@ function load_h2h_graph(data) { let index1 = d1_races.indexOf(elem[0]) let index2 = d2_races.indexOf(elem[0]) if(index1 !== -1){ - d1_res.push(d1_provisonal[index1]) - if(d1_res[index1] === -1){ - d1_res[index1] = NaN + if(d1_provisonal[index1] === -1){ + d1_res.push(NaN) } + else{ + d1_res.push(d1_provisonal[index1]) + } + } else{ d1_res.push(NaN) } if(index2 !== -1){ - d2_res.push(d2_provisonal[index2]) - if(d2_res[index2] === -1){ - d2_res[index2] = NaN + if(d2_provisonal[index2] === -1){ + d2_res.push(NaN) + } + else{ + d2_res.push(d2_provisonal[index2]) } } else{ diff --git a/launcher/version.conf b/launcher/version.conf index ce6a70b9..2eda823f 100644 --- a/launcher/version.conf +++ b/launcher/version.conf @@ -1 +1 @@ -1.6.0 \ No newline at end of file +1.6.1 \ No newline at end of file