From 6e5de1893b30fcd06e4322e8cf18f63d42ecf56a Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Wed, 8 Jan 2020 21:01:53 -0700 Subject: [PATCH] Bind handlers to this --- src/components/views/dialogs/DMInviteDialog.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/views/dialogs/DMInviteDialog.js b/src/components/views/dialogs/DMInviteDialog.js index 2a4640205d..aa54376a0a 100644 --- a/src/components/views/dialogs/DMInviteDialog.js +++ b/src/components/views/dialogs/DMInviteDialog.js @@ -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;