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() {