forked from FoundKeyGang/FoundKey
chore: Provide type for toggleReaction
This commit is contained in:
parent
d725f93d40
commit
e27494cf3e
1 changed files with 1 additions and 1 deletions
|
@ -31,7 +31,7 @@ const buttonRef = ref<HTMLElement>();
|
||||||
|
|
||||||
const canToggle = computed(() => !props.reaction.match(/@\w/) && $i);
|
const canToggle = computed(() => !props.reaction.match(/@\w/) && $i);
|
||||||
|
|
||||||
const toggleReaction = () => {
|
const toggleReaction = (): void => {
|
||||||
if (!canToggle.value) return;
|
if (!canToggle.value) return;
|
||||||
|
|
||||||
const oldReaction = props.note.myReaction;
|
const oldReaction = props.note.myReaction;
|
||||||
|
|
Loading…
Reference in a new issue