From 1971c8373290eee4da0ae14fc18f8473aa95ed75 Mon Sep 17 00:00:00 2001 From: amiechan Date: Wed, 2 Aug 2023 18:06:00 -0400 Subject: [PATCH] Fixed error message not showing on app. --- src/components/DisplayWeather.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 (
- {data.cod !== 404 ? ( + {data.cod != 404 ? (