From a72bb3026e114e78413c82db9c0dd14104668067 Mon Sep 17 00:00:00 2001 From: mattyatea Date: Thu, 20 Jun 2024 14:01:08 +0900 Subject: [PATCH] fix --- packages/frontend/src/components/MkNote.vue | 2 +- packages/frontend/src/components/MkNoteDetailed.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/frontend/src/components/MkNote.vue b/packages/frontend/src/components/MkNote.vue index 976ebd7a8f..34eebd841d 100644 --- a/packages/frontend/src/components/MkNote.vue +++ b/packages/frontend/src/components/MkNote.vue @@ -444,7 +444,7 @@ function react(viaKeyboard = false): void { } function toggleReact() { - if (appearNote.value.myReactions?.length > 3 || !appearNote.value.myReactions ) { + if (appearNote.value.myReactions?.length < 3 || !appearNote.value.myReactions ) { react(); } } diff --git a/packages/frontend/src/components/MkNoteDetailed.vue b/packages/frontend/src/components/MkNoteDetailed.vue index 3b794bb7ee..f6b0f08b37 100644 --- a/packages/frontend/src/components/MkNoteDetailed.vue +++ b/packages/frontend/src/components/MkNoteDetailed.vue @@ -502,7 +502,7 @@ function undoReact(targetNote: Misskey.entities.Note): void { } function toggleReact() { - if (appearNote.value.myReactions?.length > 3 || !appearNote.value.myReactions ) { + if (appearNote.value.myReactions?.length < 3 || !appearNote.value.myReactions ) { react(); } }