From eb318972b884dfb0d41cbf69bb6a2bc6ba5f7c91 Mon Sep 17 00:00:00 2001 From: Mitja Belak Date: Fri, 25 Oct 2024 15:58:09 +0200 Subject: [PATCH] Fixed a formatting bug --- app/src/components/Counter.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/components/Counter.tsx b/app/src/components/Counter.tsx index 5d924b3..c18414c 100644 --- a/app/src/components/Counter.tsx +++ b/app/src/components/Counter.tsx @@ -41,7 +41,7 @@ export const toReadable = (value: bigint) => { return value.toString(); } else { const divided = value / suffixes[i - 1].value; - const numStr = (value % suffixes[i - 0].value).toString().slice(0, 3); + const numStr = (value % suffixes[i - 1].value).toString().slice(0, 3); const remainder = parseInt(numStr.replace(/0+$/, ''), 10); return `${divided.toString()}.${remainder.toString()} ${suffixes[i - 1].suffix}`; }