From 192f3f1aa0bde2d2b48d81fdaab21a007c643662 Mon Sep 17 00:00:00 2001 From: Djorkaeff Alexandre Date: Fri, 6 Nov 2020 12:47:58 -0300 Subject: [PATCH] [FIX] Search messages crashing when show a thread message (#2618) Co-authored-by: Diego Mello --- app/containers/message/Thread.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/containers/message/Thread.js b/app/containers/message/Thread.js index 55086fa88..a3f6cff1e 100644 --- a/app/containers/message/Thread.js +++ b/app/containers/message/Thread.js @@ -23,7 +23,7 @@ const Thread = React.memo(({ } = useContext(MessageContext); const time = formatDateThreads(tlm); const buttonText = formatMessageCount(tcount, THREAD); - const badgeColor = getBadgeColor(id); + const badgeColor = getBadgeColor?.(id); const isFollowing = replies?.find(u => u === user.id); return (