From 1925f7725fbe1b0384eb6122b59da6b2934ef9ce Mon Sep 17 00:00:00 2001 From: Warrick Corfe-Tan Date: Mon, 7 Jun 2021 17:04:13 +1000 Subject: [PATCH] Session confirm modal appearing and deleting account on OK click. --- ts/components/session/LeftPaneSettingSection.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ts/components/session/LeftPaneSettingSection.tsx b/ts/components/session/LeftPaneSettingSection.tsx index 1b1a2865f..24dd82f13 100644 --- a/ts/components/session/LeftPaneSettingSection.tsx +++ b/ts/components/session/LeftPaneSettingSection.tsx @@ -139,7 +139,7 @@ const LeftPaneBottomButtons = (props: { setModal: any}) => { text={dangerButtonText} buttonType={SessionButtonType.SquareOutline} buttonColor={SessionButtonColor.Danger} - onClick={onDeleteAccount(setModal)} + onClick={() => onDeleteAccount(setModal)} />