This commit is contained in:
mattyatea 2024-06-20 14:13:05 +09:00
parent e039cba2a3
commit 0f99ba192d

View file

@ -66,8 +66,7 @@ const canGetInfo = computed(() => !props.reaction.match(/@\w/) && props.reaction
async function toggleReaction() {
if (!canToggle.value) return;
const oldReaction = props.note.myReactions.includes(props.reaction) ? props.reaction : null;
console.log(oldReaction);
const oldReaction = props.note.myReactions?.includes(props.reaction) ? props.reaction : null;
if (oldReaction) {
const confirm = await os.confirm({
type: 'warning',