Format number of subscribers

This commit is contained in:
n8detar 2022-04-22 09:09:55 -07:00
parent 4082fe1e1c
commit 0f5ad25a92
1 changed files with 2 additions and 1 deletions

View File

@ -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 = () => {
</a>
</h3>
{/* {% if channel.source.channel_subs >= 1000000 %} */}
<p>Subscribers: {channel?.channel_subs} </p>
<p>Subscribers: {formatNumbers(channel?.channel_subs)} </p>
{/* {% else %} */}
</div>
</div>