diff --git a/src/components/DisplayWeather.js b/src/components/DisplayWeather.js index 225d6f8..e6aa01b 100644 --- a/src/components/DisplayWeather.js +++ b/src/components/DisplayWeather.js @@ -4,11 +4,11 @@ function DisplayWeather(props) { const { data } = props; const iconurl = "http://openweathermap.org/img/wn/" + - `${data.cod !== 404 ? data.weather[0].icon : null}` + + `${data.cod != 404 ? data.weather[0].icon : null}` + ".png"; return (