From e27494cf3e58a01fa00abf591d969d94c9c76421 Mon Sep 17 00:00:00 2001 From: Michcio Date: Wed, 14 Sep 2022 15:13:32 +0200 Subject: [PATCH] chore: Provide type for toggleReaction --- packages/client/src/components/reactions-viewer.reaction.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/client/src/components/reactions-viewer.reaction.vue b/packages/client/src/components/reactions-viewer.reaction.vue index a78efb145..685c90106 100644 --- a/packages/client/src/components/reactions-viewer.reaction.vue +++ b/packages/client/src/components/reactions-viewer.reaction.vue @@ -31,7 +31,7 @@ const buttonRef = ref(); const canToggle = computed(() => !props.reaction.match(/@\w/) && $i); -const toggleReaction = () => { +const toggleReaction = (): void => { if (!canToggle.value) return; const oldReaction = props.note.myReaction;