From 1be91291126031081cba8816c1f0f84e8a9a73ba Mon Sep 17 00:00:00 2001 From: Manoj Malik Date: Tue, 3 Aug 2021 18:19:02 +0530 Subject: [PATCH] Fixed the custom status invalid prop warning issue in ChannelInfo screen (#5589) --- app/screens/channel_info/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/screens/channel_info/index.js b/app/screens/channel_info/index.js index 9fd9f3f53..854164f5d 100644 --- a/app/screens/channel_info/index.js +++ b/app/screens/channel_info/index.js @@ -46,7 +46,7 @@ function makeMapStateToProps() { currentChannelGuestCount = 1; } customStatusEnabled = isCustomStatusEnabled(state); - customStatus = customStatusEnabled && getCustomStatus(state, teammateId); + customStatus = customStatusEnabled ? getCustomStatus(state, teammateId) : undefined; customStatusExpired = customStatusEnabled ? isCustomStatusExpired(state, customStatus) : true; customStatusExpirySupported = customStatusEnabled ? isCustomStatusExpirySupported(state) : false; }