fixed bitpay payment bug as according to bitpay

This commit is contained in:
Kadir Sekha 2018-02-23 23:08:57 +05:30
commit bd382a847a
5 changed files with 14 additions and 10 deletions

View file

@ -5,11 +5,12 @@ angular.module('copayApp.services').factory('payproService',
var ret = {};
ret.getPayProDetails = function(uri, cb, disableLoader) {
ret.getPayProDetails = function(uri, coin, cb, disableLoader) {
if (!cb) cb = function() {};
var wallet = profileService.getWallets({
onlyComplete: true
onlyComplete: true,
coin: coin
})[0];
if (!wallet) return cb();