Null check view count
This commit is contained in:
parent
55065e2a9e
commit
6d560b8507
|
@ -147,6 +147,7 @@ function tToMediaFragment(t) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function viewCountToText(viewCount) {
|
function viewCountToText(viewCount) {
|
||||||
|
if (typeof viewCount !== "number") return null
|
||||||
return viewCount.toLocaleString("en-US") + " views"
|
return viewCount.toLocaleString("en-US") + " views"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue