From 8498373d506a26259dd9de86c06e3dacade66662 Mon Sep 17 00:00:00 2001 From: Muhammad Dyas Yaskur Date: Fri, 8 Sep 2023 08:26:21 +0700 Subject: [PATCH] fix: poll being closed after created, fixes #26 --- src/cards/PollCard.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cards/PollCard.ts b/src/cards/PollCard.ts index cbc16fe..77c46b9 100644 --- a/src/cards/PollCard.ts +++ b/src/cards/PollCard.ts @@ -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(); } }