mirror of
https://github.com/wassname/talk.git
synced 2026-06-27 17:32:25 +08:00
[CORL-976] Story Closed Fix (#2903)
* fix: fixed issue where `isStoryClosed` can return null * chore: version bump
This commit is contained in:
Generated
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@coralproject/talk",
|
||||
"version": "6.0.2",
|
||||
"version": "6.0.3",
|
||||
"lockfileVersion": 1,
|
||||
"requires": true,
|
||||
"dependencies": {
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@coralproject/talk",
|
||||
"version": "6.0.2",
|
||||
"version": "6.0.3",
|
||||
"author": "The Coral Project",
|
||||
"homepage": "https://coralproject.net/",
|
||||
"sideEffects": [
|
||||
|
||||
@@ -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