fix(frontend): 期限が無期限のアンケートに投票できない問題を修正

Fix #16708
This commit is contained in:
syuilo 2025-10-26 10:32:12 +09:00
parent 6e614ff061
commit 298f8802d4
2 changed files with 2 additions and 1 deletions

View File

@ -5,6 +5,7 @@
### Client
- Fix: アプリ内からキャッシュをクリアするとテーマ再適用するまでレンダリングが正しく行われない問題を修正
- Fix: 期限が無期限のアンケートに投票できない問題を修正
### Server
-

View File

@ -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' :