components/member-list: re-render on State.users update

This commit is contained in:
Simon Ser 2021-11-28 20:13:08 +01:00
parent fcce340846
commit 1800b6bea1

View file

@ -13,7 +13,8 @@ class MemberItem extends Component {
shouldComponentUpdate(nextProps) {
return this.props.nick !== nextProps.nick
|| this.props.membership !== nextProps.membership;
|| this.props.membership !== nextProps.membership
|| this.props.user !== nextProps.user;
}
handleClick(event) {
@ -105,7 +106,8 @@ function sortMembers(a, b) {
export default class MemberList extends Component {
shouldComponentUpdate(nextProps) {
return this.props.members !== nextProps.members;
return this.props.members !== nextProps.members
|| this.props.users !== nextProps.users;
}
render() {