From 4c22a439e44bba5eb18c980fc16dea09c9471044 Mon Sep 17 00:00:00 2001 From: pkova Date: Wed, 14 Apr 2021 20:37:27 +0300 Subject: [PATCH] btc: go to invoice screen only after receiving psbt --- pkg/btc-wallet/src/js/components/lib/send.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkg/btc-wallet/src/js/components/lib/send.js b/pkg/btc-wallet/src/js/components/lib/send.js index 887109d9b..e5312765d 100644 --- a/pkg/btc-wallet/src/js/components/lib/send.js +++ b/pkg/btc-wallet/src/js/components/lib/send.js @@ -34,7 +34,9 @@ export default class Send extends Component { } } this.props.api.btcWalletCommand(command).then( - (res) => console.log({res}) + (res) => { + this.setState({signing: true}); + } ); } @@ -133,7 +135,6 @@ export default class Send extends Component { px='24px' onClick={() =>{ this.initPayment() - this.setState({signing: true}) }} />