fix: NoteDetailed using wrong value

This commit is contained in:
Mar0xy 2023-11-12 22:53:06 +01:00
parent 430a96ebdb
commit d2e403a4bd
No known key found for this signature in database
GPG Key ID: 56569BBE47D2C828
1 changed files with 2 additions and 2 deletions

View File

@ -558,7 +558,7 @@ function react(viaKeyboard = false): void {
if (appearNote.reactionAcceptance === 'likeOnly') {
os.api('notes/reactions/create', {
noteId: appearNote.id,
reaction: props.meta.defaultLike,
reaction: meta.defaultLike,
});
const el = reactButton.value as HTMLElement | null | undefined;
if (el) {
@ -588,7 +588,7 @@ function like(): void {
showMovedDialog();
os.api('notes/reactions/create', {
noteId: appearNote.id,
reaction: props.meta.defaultLike,
reaction: meta.defaultLike,
});
const el = likeButton.value as HTMLElement | null | undefined;
if (el) {