From 8b784600c2258e71426e0b1be53394f83e98c424 Mon Sep 17 00:00:00 2001 From: bignutty <3515180-bignutty@users.noreply.gitlab.com> Date: Wed, 17 Jul 2024 14:18:25 +0200 Subject: [PATCH] fixes an issue with slash weather --- commands/interaction/slash/utils/weather.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/interaction/slash/utils/weather.js b/commands/interaction/slash/utils/weather.js index 4c93338..ec94324 100644 --- a/commands/interaction/slash/utils/weather.js +++ b/commands/interaction/slash/utils/weather.js @@ -123,7 +123,7 @@ module.exports = { data = data.response.body let units = ["°C", "°F"] - if(["f","fahrenheit","°f"].includes(args.units.toLowerCase())) units = ["°F", "°C"] + if(args.units) if(["f","fahrenheit","°f"].includes(args.units.toLowerCase())) units = ["°F", "°C"] let pages = [] pages.push(page(renderWeatherCard(context, data, units[0])))