diff --git a/utils/converters.js b/utils/converters.js index 80358d8..84e4535 100644 --- a/utils/converters.js +++ b/utils/converters.js @@ -147,6 +147,7 @@ function tToMediaFragment(t) { } function viewCountToText(viewCount) { + if (typeof viewCount !== "number") return null return viewCount.toLocaleString("en-US") + " views" }