clean up
This commit is contained in:
parent
c40eabf807
commit
c553b51817
2 changed files with 1 additions and 2 deletions
|
|
@ -508,7 +508,7 @@ function reviewController(addressbookService, bitcoinCashJsService, bitcore, bit
|
||||||
}
|
}
|
||||||
|
|
||||||
shapeshiftService.shiftIt(vm.originWallet.coin, toWallet.coin, withdrawalAddr, returnAddr, function onShiftIt(err, shapeshiftData) {
|
shapeshiftService.shiftIt(vm.originWallet.coin, toWallet.coin, withdrawalAddr, returnAddr, function onShiftIt(err, shapeshiftData) {
|
||||||
if (err && err != null) {
|
if (err) {
|
||||||
ongoingProcess.set('connectingShapeshift', false);
|
ongoingProcess.set('connectingShapeshift', false);
|
||||||
popupService.showAlert(gettextCatalog.getString('Shapeshift Error'), err.toString(), function () {
|
popupService.showAlert(gettextCatalog.getString('Shapeshift Error'), err.toString(), function () {
|
||||||
$ionicHistory.goBack();
|
$ionicHistory.goBack();
|
||||||
|
|
|
||||||
|
|
@ -32,7 +32,6 @@ angular.module('bitcoincom.services').factory('shapeshiftService', function ($ht
|
||||||
};
|
};
|
||||||
|
|
||||||
root.shiftIt = function (coinIn, coinOut, withdrawalAddress, returnAddress, cb) {
|
root.shiftIt = function (coinIn, coinOut, withdrawalAddress, returnAddress, cb) {
|
||||||
ongoingProcess.set('connectingShapeshift', true);
|
|
||||||
root.withdrawalAddress = withdrawalAddress;
|
root.withdrawalAddress = withdrawalAddress;
|
||||||
root.returnAddress = returnAddress;
|
root.returnAddress = returnAddress;
|
||||||
root.coinIn = coinIn;
|
root.coinIn = coinIn;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue