From 298f8802d47e456ab5ae2a77c0f2f22960f5ec22 Mon Sep 17 00:00:00 2001 From: syuilo <4439005+syuilo@users.noreply.github.com> Date: Sun, 26 Oct 2025 10:32:12 +0900 Subject: [PATCH] =?UTF-8?q?fix(frontend):=20=E6=9C=9F=E9=99=90=E3=81=8C?= =?UTF-8?q?=E7=84=A1=E6=9C=9F=E9=99=90=E3=81=AE=E3=82=A2=E3=83=B3=E3=82=B1?= =?UTF-8?q?=E3=83=BC=E3=83=88=E3=81=AB=E6=8A=95=E7=A5=A8=E3=81=A7=E3=81=8D?= =?UTF-8?q?=E3=81=AA=E3=81=84=E5=95=8F=E9=A1=8C=E3=82=92=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fix #16708 --- CHANGELOG.md | 1 + packages/frontend/src/components/MkPoll.vue | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index be2ac6be1e..8e3bdbfe99 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ ### Client - Fix: アプリ内からキャッシュをクリアするとテーマ再適用するまでレンダリングが正しく行われない問題を修正 +- Fix: 期限が無期限のアンケートに投票できない問題を修正 ### Server - diff --git a/packages/frontend/src/components/MkPoll.vue b/packages/frontend/src/components/MkPoll.vue index 9fc9c98493..305e9b5c4f 100644 --- a/packages/frontend/src/components/MkPoll.vue +++ b/packages/frontend/src/components/MkPoll.vue @@ -58,7 +58,7 @@ const remaining = computed(() => { }); const total = computed(() => sum(props.choices.map(x => x.votes))); -const closed = computed(() => remaining.value <= 0); +const closed = computed(() => props.expiresAt != null && remaining.value <= 0); const isVoted = computed(() => !props.multiple && props.choices.some(c => c.isVoted)); const timer = computed(() => i18n.tsx._poll[ remaining.value >= 86400 ? 'remainingDays' :