Skip to content

Commit e09e47d

Browse files
committed
chore: ESLint
1 parent 9f8c905 commit e09e47d

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

packages/frontend/src/components/MkInviteCode.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ const isExpired = computed(() => {
8585
return props.invite.expiresAt && new Date(props.invite.expiresAt) < new Date();
8686
});
8787

88-
const inviteUrl = `${(new URL(window.location.href)).origin}/?invite=${props.invite.code}`
88+
const inviteUrl = `${(new URL(window.location.href)).origin}/?invite=${props.invite.code}`;
8989

9090
function deleteCode() {
9191
os.apiWithDialog('invite/delete', {

packages/frontend/src/components/MkReactionsViewer.reaction.vue

+2-1
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ const buttonEl = shallowRef<HTMLElement>();
5353

5454
const emojiName = computed(() => props.reaction.replace(/:/g, '').replace(/@\./, ''));
5555
const emoji = computed(() => customEmojisMap.get(emojiName.value) ?? getUnicodeEmoji(props.reaction));
56+
const isCustomEmoji = computed(() => props.reaction.includes(':'));
5657

5758
const canToggle = computed(() => {
5859
return !props.reaction.match(/@\w/) && $i && emoji.value && checkReactionPermissions($i, props.note, emoji.value);
@@ -77,7 +78,7 @@ async function toggleReaction() {
7778
}
7879
misskeyApi('notes/reactions/delete', {
7980
noteId: props.note.id,
80-
reaction: (isCustomEmoji.value) ? `:${emoji.value.name}:` : props.reaction,
81+
reaction: (isCustomEmoji.value) ? `:${emojiName.value}:` : props.reaction,
8182
});
8283
} else {
8384
sound.playMisskeySfx('reaction');

packages/frontend/src/components/MkSignupDialog.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ SPDX-License-Identifier: AGPL-3.0-only
2525
<XServerRules @done="isAcceptedServerRule = true" @cancel="dialog?.close()"/>
2626
</template>
2727
<template v-else>
28-
<XSignup :autoSet="autoSet" @signup="onSignup" @signupEmailPending="onSignupEmailPending" :initialInvitationCode="invitecodeParam"/>
28+
<XSignup :autoSet="autoSet" :initialInvitationCode="invitecodeParam" @signup="onSignup" @signupEmailPending="onSignupEmailPending"/>
2929
</template>
3030
</Transition>
3131
</div>

0 commit comments

Comments
 (0)