diff --git a/packages/frontend/src/components/MkPoll.vue b/packages/frontend/src/components/MkPoll.vue index 641b17d066..6ee0c44658 100644 --- a/packages/frontend/src/components/MkPoll.vue +++ b/packages/frontend/src/components/MkPoll.vue @@ -18,7 +18,7 @@ SPDX-License-Identifier: AGPL-3.0-only
{{ i18n.t('_poll.totalVotes', { n: total }) }} · - {{ i18n.ts._poll.multiple }} + {{ i18n.ts._poll.multiple }} · {{ showResult ? i18n.ts._poll.vote : i18n.ts._poll.showResult }} {{ i18n.ts._poll.voted }} @@ -103,8 +103,8 @@ const vote = async (id) => { async function refresh() { if (!props.note.uri) return; - const obj = await os.apiWithDialog("ap/show", { uri: props.note.uri }); - if (obj.type === "Note" && obj.object.poll) { + const obj = await os.apiWithDialog('ap/show', { uri: props.note.uri }); + if (obj.type === 'Note' && obj.object.poll) { props.note.poll = obj.object.poll; // eslint-disable-line vue/no-mutating-props } }