1
0
mirror of https://git.sr.ht/~cadence/cloudtube synced 2024-11-21 23:27:30 +00:00

Null check view count

This commit is contained in:
Cadence Ember 2021-09-13 18:30:10 +12:00
parent 55065e2a9e
commit 6d560b8507
No known key found for this signature in database
GPG Key ID: BC1C2C61CF521B17

View File

@ -147,6 +147,7 @@ function tToMediaFragment(t) {
}
function viewCountToText(viewCount) {
if (typeof viewCount !== "number") return null
return viewCount.toLocaleString("en-US") + " views"
}