From 5ed16075b77471ddda35ddc9282352a11f5678a5 Mon Sep 17 00:00:00 2001 From: "Fabien \"egg\" O'Carroll" Date: Thu, 28 Jul 2022 15:34:00 +0100 Subject: [PATCH] Fixed title conditional to allow for no title refs https://github.com/TryGhost/Team/issues/1695 We should allow for an empty string to be passed in as the title, which means a boolean coercion check is not appropriate, we should check for null which in this case means to use the default title --- apps/comments-ui/src/components/CommentsBox.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/comments-ui/src/components/CommentsBox.js b/apps/comments-ui/src/components/CommentsBox.js index 3cf9218d66..32698a46ef 100644 --- a/apps/comments-ui/src/components/CommentsBox.js +++ b/apps/comments-ui/src/components/CommentsBox.js @@ -24,7 +24,7 @@ const CommentsBoxContent = (props) => { {/* {TODO: Put in conditionals and variables for the new comment helper} */}

- {title ? title : <>Member discussion} + {title !== null ? title : <>Member discussion}

{count ?
{commentsCount} comments
: null}