Browse Source

Merge branch 'redux' into decouple-jsx-out-of-js

all-modes
petitPapillon 8 years ago
parent
commit
9e554c98af
  1. 10
      react/src/actions/actions/nativeSend.js

10
react/src/actions/actions/nativeSend.js

@ -70,14 +70,8 @@ export function sendNativeTx(coin, _payload) {
dispatch(triggerToaster(true, 'sendNativeTx', 'Error', 'error')); dispatch(triggerToaster(true, 'sendNativeTx', 'Error', 'error'));
}) })
.then(function(response) { .then(function(response) {
if (_apiMethod === 'sendtoaddress') { const _response = response.text().then(function(text) { return text; });
const _response = response.text().then(function(text) { return text; }); return response.json();
console.log('native sendtoaddress', _response);
return _response;
} else {
return response.json();
}
}) })
.then(function(json) { .then(function(json) {
dispatch(logGuiHttp({ dispatch(logGuiHttp({

Loading…
Cancel
Save