From faff26b13da82747fb0efdb6bf1312a9b14d3916 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Wed, 17 Sep 2025 19:14:32 +0900 Subject: feat(backend,frontend): implement tournament page --- frontend/app/components/Gaming/Score.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'frontend/app/components/Gaming/Score.tsx') diff --git a/frontend/app/components/Gaming/Score.tsx b/frontend/app/components/Gaming/Score.tsx index 9b6283f..b4a415c 100644 --- a/frontend/app/components/Gaming/Score.tsx +++ b/frontend/app/components/Gaming/Score.tsx @@ -13,8 +13,8 @@ export default function Score({ status, score }: Props) { if (status === "running") { intervalId = setInterval(() => { - const maxValue = Math.pow(10, String(score).length) - 1; - const minValue = Math.pow(10, String(score).length - 1); + const maxValue = Math.pow(10, String(score ?? 100).length) - 1; + const minValue = Math.pow(10, String(score ?? 100).length - 1); const randomValue = Math.floor(Math.random() * (maxValue - minValue + 1)) + minValue; setDisplayScore(randomValue); -- cgit v1.2.3-70-g09d2