From 22c733707e5f576fe8a720f38d303f142ee62f48 Mon Sep 17 00:00:00 2001 From: Ilari Suhonen Date: Mon, 20 Mar 2023 10:46:29 +0200 Subject: [PATCH] fix(index): rounding error in player count use Math.floor() instead of Math.round() to fix values like "30600" being displayed as "31K+" --- src/pages/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/index.tsx b/src/pages/index.tsx index 07e7aa18..fe306578 100644 --- a/src/pages/index.tsx +++ b/src/pages/index.tsx @@ -100,7 +100,7 @@ const Home: NextPage = ({ project }) => { Powering  {playerData ? ( - {Math.round(playerData[0][1] / 1000)}k+ + {Math.floor(playerData[0][1] / 1000)}k+ ) : (