This commit is contained in:
Jean-Baptiste Dominguez 2018-09-05 11:37:29 +09:00
commit 5e034e7b8b

View file

@ -13,7 +13,6 @@ angular.module('bitcoincom.services').factory('shapeshiftService', function ($ht
root.getMarketData = function (coinIn, coinOut, cb) { root.getMarketData = function (coinIn, coinOut, cb) {
root.coinIn = coinIn; root.coinIn = coinIn;
root.coinOut = coinOut; root.coinOut = coinOut;
if (root.coinIn !== undefined && root.coinOut !== undefined){
shapeshiftApiService shapeshiftApiService
.marketInfo(root.coinIn, root.coinOut) .marketInfo(root.coinIn, root.coinOut)
.then(function (marketData) { .then(function (marketData) {
@ -23,7 +22,6 @@ angular.module('bitcoincom.services').factory('shapeshiftService', function ($ht
cb(marketData); cb(marketData);
} }
}); });
}
}; };
root.coins = { root.coins = {