Fixed the custom status invalid prop warning issue in ChannelInfo screen (#5589)

This commit is contained in:
Manoj Malik
2021-08-03 18:19:02 +05:30
committed by GitHub
parent 583e6b032f
commit 1be9129112

View File

@@ -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;
}