[CORL-976] Story Closed Fix (#2903)

* fix: fixed issue where `isStoryClosed` can return null

* chore: version bump
This commit is contained in:
Wyatt Johnson
2020-03-23 18:02:45 +00:00
committed by GitHub
parent 1503b735e5
commit 1b73a5fcd7
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@coralproject/talk",
"version": "6.0.2",
"version": "6.0.3",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@coralproject/talk",
"version": "6.0.2",
"version": "6.0.3",
"author": "The Coral Project",
"homepage": "https://coralproject.net/",
"sideEffects": [
+1 -1
View File
@@ -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(