~cadence/cloudtube

6d560b850708d3a19c6379a96e624b6a122e2290 — Cadence Ember 2 months ago 55065e2
Null check view count
1 files changed, 1 insertions(+), 0 deletions(-)

M utils/converters.js
M utils/converters.js => utils/converters.js +1 -0
@@ 147,6 147,7 @@ function tToMediaFragment(t) {
}

function viewCountToText(viewCount) {
	if (typeof viewCount !== "number") return null
	return viewCount.toLocaleString("en-US") + " views"
}