Skip to content

Commit

Permalink
Fix duplicate variable names (#66)
Browse files Browse the repository at this point in the history
  • Loading branch information
michie1 authored and Michiel Vos committed Jan 12, 2024
1 parent 7839a67 commit db53df8
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions prod/2023/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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(
{
Expand All @@ -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
Expand All @@ -74,7 +74,7 @@ function loadResults() {
});
app.ports.infoForElm.send({
tag: "ResultsLoaded",
data: results
data: data
});
}

Expand Down

0 comments on commit db53df8

Please sign in to comment.