From c74241fde6707704f66f10d752044540783d4736 Mon Sep 17 00:00:00 2001 From: Commandtechno <68407783+Commandtechno@users.noreply.github.com> Date: Sat, 3 Dec 2022 16:11:08 -0600 Subject: add commas in member count (#286) l --- src/plugins/memberCount.tsx | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src/plugins/memberCount.tsx') diff --git a/src/plugins/memberCount.tsx b/src/plugins/memberCount.tsx index c016dff..6377a9b 100644 --- a/src/plugins/memberCount.tsx +++ b/src/plugins/memberCount.tsx @@ -35,11 +35,13 @@ function MemberCount() { if (!c) return null; - let total = String(c[0]); + let total = c[0].toLocaleString(); if (total === "0" && c[1] > 0) { total = "Loading..."; } + const online = c[1].toLocaleString(); + return ( - + {props => (
- {c[1]} + {online}
)}
- + {props => (