mirror of
https://git.sr.ht/~cadence/cloudtube
synced 2024-11-22 07:37:29 +00:00
Null check view count
This commit is contained in:
parent
55065e2a9e
commit
6d560b8507
@ -147,6 +147,7 @@ function tToMediaFragment(t) {
|
||||
}
|
||||
|
||||
function viewCountToText(viewCount) {
|
||||
if (typeof viewCount !== "number") return null
|
||||
return viewCount.toLocaleString("en-US") + " views"
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user