Skip to content

Commit

Permalink
fix(src/index.js): Removed trailing spaces in URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
aschuma committed Feb 9, 2018
1 parent 2ac338f commit 0291773
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,14 @@ const fetchSensorData = (sensorID) => fetch("http://api.luftdaten.info/v1/sensor
.then(_.last)
.then(mapData);

const fetchSensorData1hAvg = (sensorID) => fetch("http://api.luftdaten.info/static/v2/data.1h.json ")
const fetchSensorData1hAvg = (sensorID) => fetch("http://api.luftdaten.info/static/v2/data.1h.json")
.then((res) => res.json())
.then(filter(sensorID))
.then(order)
.then(_.last)
.then(mapData);

const fetchSensorData24hAvg = (sensorID) => fetch("http://api.luftdaten.info/static/v2/data.24h.json ")
const fetchSensorData24hAvg = (sensorID) => fetch("http://api.luftdaten.info/static/v2/data.24h.json")
.then((res) => res.json())
.then(filter(sensorID))
.then(order)
Expand Down

0 comments on commit 0291773

Please sign in to comment.