Fix resume event on mobile for Glidera/Coinbase integration (#4083)

This commit is contained in:
Gustavo Maximiliano Cortez 2016-04-15 15:29:20 -03:00 committed by Matias Alejo Garcia
commit 4a8e5397ce
4 changed files with 13 additions and 7 deletions

View file

@ -356,7 +356,8 @@ angular.module('copayApp.services').factory('coinbaseService', function($http, $
root.getPendingTransactions = function(cb) {
var network = configService.getSync().coinbase.testnet ? 'testnet' : 'livenet';
storageService.getCoinbaseTxs(network, function(err, txs) {
return cb(err, JSON.parse(txs));
var _txs = txs ? JSON.parse(txs) : {};
return cb(err, _txs);
});
};