Update funcs.js
All checks were successful
ptero-push / build (push) Successful in 6s

This commit is contained in:
Christopher Cookman 2024-06-20 11:10:26 -06:00
parent 6bdc4240be
commit fbcc902bba

View file

@ -108,12 +108,12 @@ const generateDiscordEmbeds = (forecastData, numOfDays) => {
}, },
{ {
name: 'Precipitation', name: 'Precipitation',
value: period.probabilityOfPrecipitation.value ? period.probabilityOfPrecipitation.value + '%' : '0%', value: period.probabilityOfPrecipitation?.value ? period.probabilityOfPrecipitation?.value + '%' : '0%',
inline: true inline: true
}, },
{ {
name: 'Humidity', name: 'Humidity',
value: period.relativeHumidity.value + '%', value: period.relativeHumidity?.value ? period.relativeHumidity.value + '%' : "0%",
} }
], ],