From 2fbee2197a59e927fc6c9c179b407c6e1a235545 Mon Sep 17 00:00:00 2001 From: William Grant Date: Mon, 22 May 2023 16:46:02 +1000 Subject: [PATCH] fix: checking the subtitle array without casting as bool will produce a string in react --- ts/components/conversation/header/ConversationHeaderTitle.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ts/components/conversation/header/ConversationHeaderTitle.tsx b/ts/components/conversation/header/ConversationHeaderTitle.tsx index 50e823c2a..b613f996f 100644 --- a/ts/components/conversation/header/ConversationHeaderTitle.tsx +++ b/ts/components/conversation/header/ConversationHeaderTitle.tsx @@ -165,7 +165,7 @@ export const ConversationHeaderTitle = () => { {convoName} )} - {subtitleArray.length && subtitleArray.indexOf(visibleSubtitle) > -1 && ( + {subtitleArray.indexOf(visibleSubtitle) > -1 && (