Skip to content

Commit

Permalink
fix(BackstagePost): vote_button type mismatch
Browse files Browse the repository at this point in the history
  • Loading branch information
LuanRT committed Sep 10, 2023
1 parent f94ea6c commit fba3fc9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/parser/classes/BackstagePost.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { YTNode } from '../helpers.js';
import Parser, { type RawNode } from '../index.js';
import Button from './Button.js';
import NavigationEndpoint from './NavigationEndpoint.js';
import CommentActionButtons from './comments/CommentActionButtons.js';
import Menu from './menus/Menu.js';
Expand All @@ -18,7 +19,7 @@ export default class BackstagePost extends YTNode {
vote_count?: Text;
menu?: Menu | null;
action_buttons?: CommentActionButtons | null;
vote_button?: CommentActionButtons | null;
vote_button?: Button | null;
surface: string;
endpoint?: NavigationEndpoint;
attachment;
Expand Down Expand Up @@ -56,7 +57,7 @@ export default class BackstagePost extends YTNode {
}

if (Reflect.has(data, 'voteButton')) {
this.vote_button = Parser.parseItem(data.voteButton, CommentActionButtons);
this.vote_button = Parser.parseItem(data.voteButton, Button);
}

if (Reflect.has(data, 'navigationEndpoint')) {
Expand Down

0 comments on commit fba3fc9

Please sign in to comment.