Skip to content

Commit

Permalink
fix: poll being closed after created, fixes #26
Browse files Browse the repository at this point in the history
  • Loading branch information
dyaskur authored Sep 8, 2023
1 parent b124b8a commit 8498373
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cards/PollCard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,6 @@ export default class PollCard extends BaseCard {
}

private isClosed(): boolean {
return this.state.closedTime != undefined && this.state.closedTime <= Date.now();
return this.state.closedTime && this.state.closedTime <= Date.now();
}
}

0 comments on commit 8498373

Please sign in to comment.