From f5daa186acf9d839047a1d74758390c1048c0d5a Mon Sep 17 00:00:00 2001 From: Skylar Grant Date: Wed, 25 Jan 2023 23:19:00 -0500 Subject: [PATCH] Trim decimals --- modules/functions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/functions.js b/modules/functions.js index 5624e87..8c878c4 100644 --- a/modules/functions.js +++ b/modules/functions.js @@ -199,7 +199,7 @@ const functions = { statusIndicator += `+${hist24hDifference}ft|` // Get the watering time for this tree - const waterTime = functions.getWaterTime(leaderboardEntry.treeHeight); + const waterTime = parseFloat(functions.getWaterTime(leaderboardEntry.treeHeight)).toFixed(0); statusIndicator += `${waterTime} mins]\`\``; // Determine if this tree is the guild's tree