From e645551f510297a12fe86bc3a0e312ceef681257 Mon Sep 17 00:00:00 2001 From: finned-palmer Date: Wed, 30 Jun 2021 16:58:05 -0500 Subject: [PATCH] Fix patp check in send --- pkg/btc-wallet/src/js/components/lib/send.js | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/pkg/btc-wallet/src/js/components/lib/send.js b/pkg/btc-wallet/src/js/components/lib/send.js index 9bb6cbbd8a..c55bc1fd77 100644 --- a/pkg/btc-wallet/src/js/components/lib/send.js +++ b/pkg/btc-wallet/src/js/components/lib/send.js @@ -64,15 +64,12 @@ const Send = ({ stopSending, value, conversion }) => { }; const checkPayee = (e) => { - console.log('checkPayee', { e }); setError(''); let payeeReceived = e.target.value; let isPatp = ob.isValidPatp(payeeReceived); let isAddress = validate(payeeReceived); - console.log({ payeeReceived, isPatp, isAddress }); if (isPatp) { - console.log('isPatp', isPatp); let command = { 'check-payee': payeeReceived }; api.btcWalletCommand(command); setTimeout(() => { @@ -144,16 +141,14 @@ const Send = ({ stopSending, value, conversion }) => { }, []); useEffect(() => { - if (!ready && checkingPatp) { - console.log({ ready, checkingPatp, shipWallets, payee }); + if (!ready && !checkingPatp) { if (shipWallets.payee === payee.slice(1) && shipWallets.hasWallet) { - console.log('good'); setReady(true); setCheckingPatp(false); setValidPayee(true); } } - }, [ready, checkingPatp, shipWallets]); + }, [ready, checkingPatp, shipWallets, payee]); let payeeColor = 'black'; let payeeBg = 'white';