From fbcc902bbaf7224b3a7f00de941949bee834df00 Mon Sep 17 00:00:00 2001 From: ChrisChrome Date: Thu, 20 Jun 2024 11:10:26 -0600 Subject: [PATCH] Update funcs.js --- funcs.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/funcs.js b/funcs.js index ae96507..6bce1ab 100644 --- a/funcs.js +++ b/funcs.js @@ -108,12 +108,12 @@ const generateDiscordEmbeds = (forecastData, numOfDays) => { }, { name: 'Precipitation', - value: period.probabilityOfPrecipitation.value ? period.probabilityOfPrecipitation.value + '%' : '0%', + value: period.probabilityOfPrecipitation?.value ? period.probabilityOfPrecipitation?.value + '%' : '0%', inline: true }, { name: 'Humidity', - value: period.relativeHumidity.value + '%', + value: period.relativeHumidity?.value ? period.relativeHumidity.value + '%' : "0%", } ],