Skip to content

Commit b8bc7ff

Browse files
fix(studio): comma formatting for auth overview numbers (supabase#39838)
fix: bring commans in for big numbers
1 parent af43adb commit b8bc7ff

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

apps/studio/components/interfaces/Auth/Overview/OverviewUsage.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,11 @@ export const StatCard = ({
5959
: 'text-brand'
6060
: getChangeColor(previous)
6161
const formattedCurrent =
62-
suffix === 'ms' ? current.toFixed(2) : suffix === '%' ? current.toFixed(1) : Math.round(current)
62+
suffix === 'ms'
63+
? current.toFixed(2)
64+
: suffix === '%'
65+
? current.toFixed(1)
66+
: Math.round(current).toLocaleString()
6367
const signChar = previous > 0 ? '+' : previous < 0 ? '-' : ''
6468

6569
return (

0 commit comments

Comments
 (0)