Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

fix: handle round numbers for github button (#18257)

Pamela Chia66d8fe7063ae
diff --git a/apps/www/components/Nav/GitHubButton.tsx b/apps/www/components/Nav/GitHubButton.tsx
index b75faf7953e..329cb7c3c49 100644
--- a/apps/www/components/Nav/GitHubButton.tsx
+++ b/apps/www/components/Nav/GitHubButton.tsx
@@ -8,7 +8,7 @@ const GitHubButton = () => {
const kFormatter = (num: number) => {
const kFormat = num / 1000
- const decimals = kFormat.toString().split('.')[1]
+ const decimals = kFormat.toFixed(2).split('.')[1]
const firstDecimal = decimals.split('')[0]
const showDecimals = firstDecimal !== '0'