From 0dba883641b202d92f75608a0b0d691a23047927 Mon Sep 17 00:00:00 2001 From: Conner Hnatiuk <46903591+ConnerWithAnE@users.noreply.github.com> Date: Thu, 16 May 2024 22:58:37 -0600 Subject: [PATCH] Update src/widgets/wgeasy/proxy.js Co-authored-by: shamoon <4887959+shamoon@users.noreply.github.com> --- src/widgets/wgeasy/proxy.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/widgets/wgeasy/proxy.js b/src/widgets/wgeasy/proxy.js index 84b8eb87..40a32fd8 100644 --- a/src/widgets/wgeasy/proxy.js +++ b/src/widgets/wgeasy/proxy.js @@ -64,11 +64,7 @@ export default async function wgeasyProxyHandler(req, res) { ); const dataParsed = JSON.parse(data); - if (widget.threshold) { - dataParsed.push({ threshold: widget.threshold }); - } else { - dataParsed.push({ threshold: 2 }); - } + dataParsed.push({ threshold: widget.threshold ?? 2 }); return res.send(dataParsed); }