Format number of subscribers

This commit is contained in:
n8detar 2022-04-22 09:09:55 -07:00
parent 4082fe1e1c
commit 0f5ad25a92

View File

@ -6,6 +6,7 @@ import { CustomHead } from "../components/CustomHead";
import { Layout } from "../components/Layout"; import { Layout } from "../components/Layout";
import { getTAUrl } from "../lib/constants"; import { getTAUrl } from "../lib/constants";
import { getChannels } from "../lib/getChannels"; import { getChannels } from "../lib/getChannels";
import { formatNumbers } from "../lib/utils";
const TA_BASE_URL = getTAUrl(); const TA_BASE_URL = getTAUrl();
@ -170,7 +171,7 @@ const Channel: NextPage = () => {
</a> </a>
</h3> </h3>
{/* {% if channel.source.channel_subs >= 1000000 %} */} {/* {% if channel.source.channel_subs >= 1000000 %} */}
<p>Subscribers: {channel?.channel_subs} </p> <p>Subscribers: {formatNumbers(channel?.channel_subs)} </p>
{/* {% else %} */} {/* {% else %} */}
</div> </div>
</div> </div>