From 75d39e7afbdb18846f10d803f63bcc1d87a16daa Mon Sep 17 00:00:00 2001 From: absidue <48293849+absidue@users.noreply.github.com> Date: Sat, 8 Feb 2025 10:00:03 +0100 Subject: [PATCH] chore(parser): Simplify d0d48bf525cc2a95dd3397a3142bea113ea9782e (#888) --- src/parser/classes/comments/CommentView.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/parser/classes/comments/CommentView.ts b/src/parser/classes/comments/CommentView.ts index 9fa5cf4b..d70bc639 100644 --- a/src/parser/classes/comments/CommentView.ts +++ b/src/parser/classes/comments/CommentView.ts @@ -119,14 +119,14 @@ export default class CommentView extends YTNode { } if (toolbar_surface) { - if (!('prepareAccountCommand' in toolbar_surface)) { + if ('prepareAccountCommand' in toolbar_surface) { + this.prepare_account_command = new NavigationEndpoint(toolbar_surface.prepareAccountCommand); + } else { this.like_command = new NavigationEndpoint(toolbar_surface.likeCommand); this.dislike_command = new NavigationEndpoint(toolbar_surface.dislikeCommand); this.unlike_command = new NavigationEndpoint(toolbar_surface.unlikeCommand); this.undislike_command = new NavigationEndpoint(toolbar_surface.undislikeCommand); this.reply_command = new NavigationEndpoint(toolbar_surface.replyCommand); - } else if ('prepareAccountCommand' in toolbar_surface) { - this.prepare_account_command = new NavigationEndpoint(toolbar_surface.prepareAccountCommand); } } }