mirror of
https://github.com/wassname/talk.git
synced 2026-09-09 11:38:08 +08:00
[CORL-976] Story Closed Fix (#2903)
* fix: fixed issue where `isStoryClosed` can return null * chore: version bump
This commit is contained in:
@@ -32,7 +32,7 @@ export function isStoryClosed(
|
||||
now = new Date()
|
||||
) {
|
||||
const closedAt = getStoryClosedAt(tenant, story);
|
||||
return closedAt && closedAt <= now;
|
||||
return !!closedAt && closedAt <= now;
|
||||
}
|
||||
|
||||
export function getStoryClosedAt(
|
||||
|
||||
Reference in New Issue
Block a user