diff --git a/packages/frontend/src/components/MkReactionsViewer.reaction.vue b/packages/frontend/src/components/MkReactionsViewer.reaction.vue index 5cb4836052..c86d4efe23 100644 --- a/packages/frontend/src/components/MkReactionsViewer.reaction.vue +++ b/packages/frontend/src/components/MkReactionsViewer.reaction.vue @@ -39,7 +39,7 @@ const reactionName = computed(() => { return r.slice(0, r.indexOf('@')); }); -const alternative: ComputedRef = computed(() => (customEmojis).find(it => it.name === reactionName.value)?.name); +const alternative: ComputedRef = computed(() => customEmojis.value.find(it => it.name === reactionName.value)?.name ?? null); const canToggle = computed(() => !props.reaction.match(/@\w/) && $i);