From f3ce6760285ef5ea01d7cc55671b9f1e1fb55a7c Mon Sep 17 00:00:00 2001 From: "Scott E. Graves" Date: Fri, 5 May 2017 12:29:27 -0500 Subject: [PATCH] Clear on send --- htdocs/js/index.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/htdocs/js/index.js b/htdocs/js/index.js index bbf34f9..ebaa752 100644 --- a/htdocs/js/index.js +++ b/htdocs/js/index.js @@ -395,7 +395,10 @@ const address = getValue('ID_Send_Address'); const amount = getValue('ID_Send_Amount'); AppActions.walletSend(address, amount, (success, reason) => { - if (!success) { + if (success) { + setValue('ID_Send_Address', ''); + setValue('ID_Send_Amount', ''); + } else { displayErrorPopup('Send Failed', reason); } beginMainApplication(false);