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: fix(frontend): 期限が無期限のアンケートに投票できない問題を修正
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Fix #16708
---
 packages/frontend/src/components/MkPoll.vue | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'packages/frontend/src/components/MkPoll.vue')

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' :
-- 
cgit v1.2.3-freya

