From 79e0da2c2f8b4c088140b5fbbff7a40b5b87b2c6 Mon Sep 17 00:00:00 2001 From: Vinh Date: Wed, 13 May 2020 17:31:15 +0200 Subject: [PATCH] fix: bug when posting a comment without ever openened the AllCommentsTab first (#2963) --- .../Comments/Stream/PostCommentForm/CreateCommentMutation.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/client/stream/tabs/Comments/Stream/PostCommentForm/CreateCommentMutation.ts b/src/core/client/stream/tabs/Comments/Stream/PostCommentForm/CreateCommentMutation.ts index b434433eb..b580258aa 100644 --- a/src/core/client/stream/tabs/Comments/Stream/PostCommentForm/CreateCommentMutation.ts +++ b/src/core/client/stream/tabs/Comments/Stream/PostCommentForm/CreateCommentMutation.ts @@ -232,7 +232,7 @@ async function commit( id: input.storyID, settings: { live: { - enabled: storySettings.live.enabled, + enabled: Boolean(storySettings.live?.enabled), }, }, },