From 9af8a402c0317089862f4e17bb5ca02d9ef66825 Mon Sep 17 00:00:00 2001 From: Kael Date: Sun, 16 Apr 2023 16:51:23 +0000 Subject: [PATCH] =?UTF-8?q?update=20src/pages/Typing/components/ResultScre?= =?UTF-8?q?en/index.tsx.=20a=E4=BF=AE=E5=A4=8D=E6=97=B6=E9=97=B4=E8=B6=85?= =?UTF-8?q?=E8=BF=871=E5=88=86=E9=92=9F=E7=A7=92=E6=95=B0=E5=B1=95?= =?UTF-8?q?=E7=A4=BA=E5=BC=82=E5=B8=B8=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Kael --- src/pages/Typing/components/ResultScreen/index.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pages/Typing/components/ResultScreen/index.tsx b/src/pages/Typing/components/ResultScreen/index.tsx index 83dde55..fac2102 100644 --- a/src/pages/Typing/components/ResultScreen/index.tsx +++ b/src/pages/Typing/components/ResultScreen/index.tsx @@ -43,8 +43,9 @@ const ResultScreen = () => { }, [correctRate]) const timeString = useMemo(() => { - const seconds = state.timerData.time + let seconds = state.timerData.time const minutes = Math.floor(seconds / 60) + seconds-=minutes*60; const minuteString = minutes < 10 ? '0' + minutes : minutes + '' const secondString = seconds < 10 ? '0' + seconds : seconds + '' return `${minuteString}:${secondString}` -- Gitee