From 8bbaf642bfe590fa112028d36546500de864d029 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=A0imon=20Brandner?= Date: Wed, 22 Sep 2021 08:11:26 +0200 Subject: [PATCH] Avoid self = this MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Šimon Brandner --- .../views/settings/tabs/user/SecurityUserSettingsTab.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/components/views/settings/tabs/user/SecurityUserSettingsTab.tsx b/src/components/views/settings/tabs/user/SecurityUserSettingsTab.tsx index d725543caa..6aa45d05b6 100644 --- a/src/components/views/settings/tabs/user/SecurityUserSettingsTab.tsx +++ b/src/components/views/settings/tabs/user/SecurityUserSettingsTab.tsx @@ -173,8 +173,6 @@ export default class SecurityUserSettingsTab extends React.Component { // No error, update invited rooms button - this.setState({ invitedRoomAmt: self.state.invitedRoomAmt - 1 }); + this.setState({ invitedRoomAmt: this.state.invitedRoomAmt - 1 }); }, async (e) => { // Action failure if (e.errcode === "M_LIMIT_EXCEEDED") {