From ee6240617027bd4349c883bd36625851ba87b9d8 Mon Sep 17 00:00:00 2001 From: Jaco Greeff Date: Tue, 17 Mar 2020 22:01:35 +0100 Subject: [PATCH] Close signer dialog via console --- packages/react-signer/src/Modal.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/react-signer/src/Modal.tsx b/packages/react-signer/src/Modal.tsx index e29c0a4c9b..cba29e0ef6 100644 --- a/packages/react-signer/src/Modal.tsx +++ b/packages/react-signer/src/Modal.tsx @@ -550,9 +550,10 @@ class Signer extends React.PureComponent { }; private async sendExtrinsic (queueTx: QueueTx, password?: string): Promise { + const { queueSetTxStatus } = this.props; const { isV2, isSubmit, showTip, tip } = this.state; - const { accountId, extrinsic, payload, isUnsigned } = queueTx; + const { accountId, extrinsic, id, payload, isUnsigned } = queueTx; if (!isUnsigned) { assert(accountId, 'Expected an accountId with signed transactions'); @@ -566,6 +567,8 @@ class Signer extends React.PureComponent { } if (payload) { + queueSetTxStatus(id, 'completed'); + return makeExtrinsicSignature( { ...payload,