diff --git a/src/renderer/components/playlist-info/playlist-info.js b/src/renderer/components/playlist-info/playlist-info.js index a8b448ac0ec08..9be6841695807 100644 --- a/src/renderer/components/playlist-info/playlist-info.js +++ b/src/renderer/components/playlist-info/playlist-info.js @@ -93,11 +93,11 @@ export default Vue.extend({ this.infoSource = this.data.infoSource // Causes errors if not put inside of a check - if (typeof (this.data.viewCount) !== 'undefined' && !isNaN(this.data.viewCount)) { + if (!isNaN(this.data.viewCount)) { this.viewCount = this.hideViews ? null : Intl.NumberFormat(this.currentLocale).format(this.data.viewCount) } - if (typeof (this.data.videoCount) !== 'undefined' && !isNaN(this.data.videoCount)) { + if (!isNaN(this.data.viewCount)) { this.videoCount = Intl.NumberFormat(this.currentLocale).format(this.data.videoCount) }