chore: Provide type for toggleReaction

This commit is contained in:
Michcio 2022-09-14 15:13:32 +02:00 committed by Johann150
parent d725f93d40
commit e27494cf3e
Signed by untrusted user: Johann150
GPG key ID: 9EE6577A2A06F8F1

View file

@ -31,7 +31,7 @@ const buttonRef = ref<HTMLElement>();
const canToggle = computed(() => !props.reaction.match(/@\w/) && $i);
const toggleReaction = () => {
const toggleReaction = (): void => {
if (!canToggle.value) return;
const oldReaction = props.note.myReaction;