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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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