From 73dec35378e3c777cd50278cc21d352527f19084 Mon Sep 17 00:00:00 2001 From: Katalina Okano Date: Mon, 22 May 2023 21:13:21 -0400 Subject: [PATCH] faction bar to use generic round --- app/components/faction-bar.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/components/faction-bar.tsx b/app/components/faction-bar.tsx index 917a15b..8924b74 100644 --- a/app/components/faction-bar.tsx +++ b/app/components/faction-bar.tsx @@ -11,9 +11,9 @@ export const FactionBar = ({ const { vsPercent, ncPercent, trPercent } = useMemo(() => { const total = totalPopulation({ vs, nc, tr, total: 0 }); return { - vsPercent: Math.floor((vs / total) * 100) || 0, - ncPercent: Math.floor((nc / total) * 100) || 0, - trPercent: Math.floor((tr / total) * 100) || 0, + vsPercent: Math.round((vs / total) * 100) || 0, + ncPercent: Math.round((nc / total) * 100) || 0, + trPercent: Math.round((tr / total) * 100) || 0, }; }, [vs, nc, tr]); return (