Skip to content

Commit 8498373

Browse files
authored
fix: poll being closed after created, fixes #26
1 parent b124b8a commit 8498373

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cards/PollCard.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,6 @@ export default class PollCard extends BaseCard {
203203
}
204204

205205
private isClosed(): boolean {
206-
return this.state.closedTime != undefined && this.state.closedTime <= Date.now();
206+
return this.state.closedTime && this.state.closedTime <= Date.now();
207207
}
208208
}

0 commit comments

Comments
 (0)