feat: correct bars

This commit is contained in:
tresabhi committed 2024-11-12 16:12:44 -06:00
1 parent ffe6ccaed0
commit cd277fb2f1
1 file changed
+6 -1
@@ -104,7 +104,12 @@ export function InfoWithDelta({
{!noRanking && (
<Flex pl={indent ? '2' : '0'} align="center" gap="2">
<Progress variant="soft" size="1" value={50} color="gray" />
<Progress
variant="soft"
size="1"
value={((betterTanks.length + 1) / others.length) * 100}
color="gray"
/>
<Text color="gray" size="1">
{betterTanks.length + 1} / {others.length}
</Text>