From f81cee055f2fdc0f475564225a5e06244233746f Mon Sep 17 00:00:00 2001 From: ChunkyProgrammer <78101139+ChunkyProgrammer@users.noreply.github.com> Date: Mon, 3 Jan 2022 18:00:33 -0500 Subject: [PATCH] Fix: parsing video info of videos with like count disabled (#1915) * fix watch-video-info * don't display likes as 0 when disabled --- src/renderer/components/watch-video-info/watch-video-info.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/renderer/components/watch-video-info/watch-video-info.js b/src/renderer/components/watch-video-info/watch-video-info.js index ea0bdcb7..95ef955c 100644 --- a/src/renderer/components/watch-video-info/watch-video-info.js +++ b/src/renderer/components/watch-video-info/watch-video-info.js @@ -200,7 +200,7 @@ export default Vue.extend({ }, parsedLikeCount: function () { - if (this.hideVideoLikesAndDislikes) { + if (this.hideVideoLikesAndDislikes || this.likeCount === null) { return null } @@ -209,7 +209,7 @@ export default Vue.extend({ }, parsedDislikeCount: function () { - if (this.hideVideoLikesAndDislikes) { + if (this.hideVideoLikesAndDislikes || this.dislikeCount === null) { return null }