forked from Ivasoft/mattermost-mobile
Fixed the custom status invalid prop warning issue in ChannelInfo screen (#5589)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user