From 2fdca6125798f020ddff990eacb58e04e64eb496 Mon Sep 17 00:00:00 2001 From: Maxim Shishmarev Date: Fri, 29 May 2020 18:00:02 +1000 Subject: [PATCH] Lint --- ts/components/MainViewController.tsx | 2 +- .../session/LeftPaneMessageSection.tsx | 21 ++++++++++++------- 2 files changed, 14 insertions(+), 9 deletions(-) diff --git a/ts/components/MainViewController.tsx b/ts/components/MainViewController.tsx index 40ae0016d..055113ce5 100644 --- a/ts/components/MainViewController.tsx +++ b/ts/components/MainViewController.tsx @@ -109,7 +109,7 @@ async function createClosedGroup( groupName: string, groupMembers: Array, senderKeys: boolean, - onSuccess: any, + onSuccess: any ) { // Validate groupName and groupMembers length if ( diff --git a/ts/components/session/LeftPaneMessageSection.tsx b/ts/components/session/LeftPaneMessageSection.tsx index 7cbd78fa3..d390b9a5c 100644 --- a/ts/components/session/LeftPaneMessageSection.tsx +++ b/ts/components/session/LeftPaneMessageSection.tsx @@ -484,14 +484,19 @@ export class LeftPaneMessageSection extends React.Component { groupMembers: Array, senderKeys: boolean ) { - await MainViewController.createClosedGroup(groupName, groupMembers, senderKeys, () => { - this.handleToggleOverlay(undefined); - - window.pushToast({ - title: window.i18n('closedGroupCreatedToastTitle'), - type: 'success', - }); - }); + await MainViewController.createClosedGroup( + groupName, + groupMembers, + senderKeys, + () => { + this.handleToggleOverlay(undefined); + + window.pushToast({ + title: window.i18n('closedGroupCreatedToastTitle'), + type: 'success', + }); + } + ); } private handleNewSessionButtonClick() {