Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit e616dba

Browse files
committed
Factor out _closeSettings for cleanliness
1 parent 9e6841d commit e616dba

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/components/structures/GroupView.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,7 @@ export default React.createClass({
469469

470470
if (group.myMembership === 'leave') {
471471
// Leave settings - the user might have clicked the "Leave" button
472-
this._onCancelClick();
472+
this._closeSettings();
473473
}
474474
this.setState({membershipBusy: false});
475475
},
@@ -567,6 +567,10 @@ export default React.createClass({
567567
},
568568

569569
_onCancelClick: function() {
570+
this._closeSettings();
571+
},
572+
573+
_closeSettings() {
570574
this.setState({
571575
editing: false,
572576
profileForm: null,

0 commit comments

Comments
 (0)