From db53df81e32a7dd61daf567abd144d54d769ffc7 Mon Sep 17 00:00:00 2001 From: michie1 Date: Fri, 12 Jan 2024 19:58:15 +0100 Subject: [PATCH] Fix duplicate variable names (#66) --- prod/2023/index.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/prod/2023/index.js b/prod/2023/index.js index 50b6261..ee6e561 100644 --- a/prod/2023/index.js +++ b/prod/2023/index.js @@ -27,7 +27,7 @@ loadRaces(); loadResults(); function loadRiders() { - const riders = Object.keys(riders).map(function(key) { + const data = Object.keys(riders).map(function(key) { return Object.assign( { key: key @@ -38,12 +38,12 @@ function loadRiders() { app.ports.infoForElm.send({ tag: "RidersLoaded", - data: riders + data: data }); } function loadRaces() { - const races = Object.keys(races) + const data = Object.keys(races) .map(function(key) { return Object.assign( { @@ -59,12 +59,12 @@ function loadRaces() { app.ports.infoForElm.send({ tag: "RacesLoaded", - data: races + data: data }); } function loadResults() { - const results = Object.keys(results).map(function(key) { + const data = Object.keys(results).map(function(key) { return Object.assign( { key: key @@ -74,7 +74,7 @@ function loadResults() { }); app.ports.infoForElm.send({ tag: "ResultsLoaded", - data: results + data: data }); }