From ae1da8eac76e065181fcb4a0217ac84d824646bd Mon Sep 17 00:00:00 2001 From: Firepup Sixfifty Date: Fri, 16 Aug 2024 02:12:16 +0000 Subject: [PATCH] Fix syntax error --- api/app.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/app.js b/api/app.js index 6fea014..c0663f5 100644 --- a/api/app.js +++ b/api/app.js @@ -177,7 +177,7 @@ function predictSpeed(goalDate, goalNumber, currentNumber) { let daysRemaining if (timeRemaining >= 0) { daysRemaining = Math.ceil(timeRemaining / (1000 * 60 * 60 * 24)); - else { + } else { daysRemaining = math.floor(timeRemaining / (1000 * 60 * 60 * 24)); } let neededSpeed = (goalNumber - currentNumber) / Math.abs(daysRemaining); @@ -243,4 +243,4 @@ app.event('app_mention', async (body) => { } catch (error) { console.error(error); } -})(); \ No newline at end of file +})();