Skip to content

Commit

Permalink
Fixed the custom status invalid prop warning issue in ChannelInfo scr…
Browse files Browse the repository at this point in the history
  • Loading branch information
manojmalik20 authored Aug 3, 2021
1 parent 583e6b0 commit 1be9129
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/screens/channel_info/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 1be9129

Please sign in to comment.