From ef42f2ec26e3a1831dcda973319fc671f5abde2b Mon Sep 17 00:00:00 2001 From: Ilya <117220282+YakkaDev@users.noreply.github.com> Date: Fri, 10 Mar 2023 11:21:57 +0200 Subject: [PATCH] Update helper.js --- src/common/helper.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/common/helper.js b/src/common/helper.js index b73d3ea..b989af6 100644 --- a/src/common/helper.js +++ b/src/common/helper.js @@ -14,8 +14,8 @@ export function formatDuration(seconds) { m = parseInt(m % 60); } } - let text = `${s} 秒`; - if (m > 0) text = `${m} 分 ${text}`; - if (h > 0) text = `${h} 小时 ${text}`; + let text = `${s} s`; + if (m > 0) text = `${m} m ${text}`; + if (h > 0) text = `${h} h ${text}`; return text; }