From 72c3a472674774be19dbd4a512b44e2fbc41d34d Mon Sep 17 00:00:00 2001 From: pbca26 Date: Tue, 6 Jun 2017 08:58:26 +0300 Subject: [PATCH] native send toaster fix --- react/src/actions/actions/nativeSend.js | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/react/src/actions/actions/nativeSend.js b/react/src/actions/actions/nativeSend.js index 38b64fd..0ed5002 100644 --- a/react/src/actions/actions/nativeSend.js +++ b/react/src/actions/actions/nativeSend.js @@ -70,14 +70,8 @@ export function sendNativeTx(coin, _payload) { dispatch(triggerToaster(true, 'sendNativeTx', 'Error', 'error')); }) .then(function(response) { - if (_apiMethod === 'sendtoaddress') { - const _response = response.text().then(function(text) { return text; }); - - console.log('native sendtoaddress', _response); - return _response; - } else { - return response.json(); - } + const _response = response.text().then(function(text) { return text; }); + return response.json(); }) .then(function(json) { dispatch(logGuiHttp({