Skip to content

Commit 298f880

Browse files
committed
fix(frontend): 期限が無期限のアンケートに投票できない問題を修正
Fix #16708
1 parent 6e614ff commit 298f880

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

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

910
### Server
1011
-

packages/frontend/src/components/MkPoll.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ const remaining = computed(() => {
5858
});
5959
6060
const total = computed(() => sum(props.choices.map(x => x.votes)));
61-
const closed = computed(() => remaining.value <= 0);
61+
const closed = computed(() => props.expiresAt != null && remaining.value <= 0);
6262
const isVoted = computed(() => !props.multiple && props.choices.some(c => c.isVoted));
6363
const timer = computed(() => i18n.tsx._poll[
6464
remaining.value >= 86400 ? 'remainingDays' :

0 commit comments

Comments
 (0)