From 3f0e9dcb5f0123b31e6ac26dbdae3d293d97ffe5 Mon Sep 17 00:00:00 2001 From: EmeraldMerchant <96396730+EmeraldMerchant@users.noreply.github.com> Date: Wed, 14 Sep 2022 08:13:02 +0800 Subject: Update numberUtils.js --- utils/numberUtils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'utils') diff --git a/utils/numberUtils.js b/utils/numberUtils.js index 3b1dc70..b701c21 100644 --- a/utils/numberUtils.js +++ b/utils/numberUtils.js @@ -87,7 +87,7 @@ let utils = { timeNumber: (time, secondDecimals = 0) => { let mins = Math.floor(time / 1000 / 60) let secs = (time / 1000) % 60 - + if (mins === 0) return `${secs.toFixed(secondDecimals)}s` else return `${mins}m ${secs.toFixed(secondDecimals)}s` }, -- cgit