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

Commit

Permalink
Bind handlers to this
Browse files Browse the repository at this point in the history
  • Loading branch information
turt2live committed Jan 9, 2020
1 parent ab5d82b commit 6e5de18
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/components/views/dialogs/DMInviteDialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -512,20 +512,20 @@ export default class DMInviteDialog extends React.PureComponent {
}
};

_onUseDefaultIdentityServerClick(e) {
_onUseDefaultIdentityServerClick = (e) => {
e.preventDefault();

// Update the IS in account data. Actually using it may trigger terms.
// eslint-disable-next-line react-hooks/rules-of-hooks
useDefaultIdentityServer();
this.setState({canUseIdentityServer: true, tryingIdentityServer: false});
}
};

_onManageSettingsClick(e) {
_onManageSettingsClick = (e) => {
e.preventDefault();
dis.dispatch({ action: 'view_user_settings' });
this._cancel();
}
};

_renderSection(kind: "recents"|"suggestions") {
let sourceMembers = kind === 'recents' ? this.state.recents : this.state.suggestions;
Expand Down

0 comments on commit 6e5de18

Please sign in to comment.