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
1 changed files with 1 additions and 0 deletions

View File

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