From 9192c7b7d3583b78ae0f4010dbdc00c5800984cf Mon Sep 17 00:00:00 2001 From: Audric Ackermann Date: Fri, 6 Nov 2020 10:01:43 +1100 Subject: [PATCH] auto close session seed modal on copy --- ts/components/session/SessionSeedModal.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/ts/components/session/SessionSeedModal.tsx b/ts/components/session/SessionSeedModal.tsx index 2280273ed..0d0f62c62 100644 --- a/ts/components/session/SessionSeedModal.tsx +++ b/ts/components/session/SessionSeedModal.tsx @@ -111,7 +111,6 @@ export class SessionSeedModal extends React.Component { private renderSeedView() { const i18n = window.i18n; - const { onClose } = this.props; return ( <> @@ -128,8 +127,6 @@ export class SessionSeedModal extends React.Component {
- - { @@ -211,6 +208,7 @@ export class SessionSeedModal extends React.Component { window.clipboard.writeText(recoveryPhrase); ToastUtils.pushCopiedToClipBoard(); + this.props.onClose(); } private onEnter(event: any) {