From 0f5ad25a9256a5d2a7c87854cfdc33e3fb473941 Mon Sep 17 00:00:00 2001 From: n8detar Date: Fri, 22 Apr 2022 09:09:55 -0700 Subject: [PATCH] Format number of subscribers --- tubearchivist/www/src/pages/channel.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tubearchivist/www/src/pages/channel.tsx b/tubearchivist/www/src/pages/channel.tsx index 3e87d35..a9c6d34 100644 --- a/tubearchivist/www/src/pages/channel.tsx +++ b/tubearchivist/www/src/pages/channel.tsx @@ -6,6 +6,7 @@ import { CustomHead } from "../components/CustomHead"; import { Layout } from "../components/Layout"; import { getTAUrl } from "../lib/constants"; import { getChannels } from "../lib/getChannels"; +import { formatNumbers } from "../lib/utils"; const TA_BASE_URL = getTAUrl(); @@ -170,7 +171,7 @@ const Channel: NextPage = () => { {/* {% if channel.source.channel_subs >= 1000000 %} */} -

Subscribers: {channel?.channel_subs}

+

Subscribers: {formatNumbers(channel?.channel_subs)}

{/* {% else %} */}