From a1441e0da8e21bd12f7439d4fb8aa1c4ac5fbdd7 Mon Sep 17 00:00:00 2001 From: Matias Alejo Garcia Date: Sun, 25 Oct 2015 23:06:29 -0300 Subject: [PATCH] fixes callback --- src/js/services/profileService.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/js/services/profileService.js b/src/js/services/profileService.js index 74049e9f1..b574e2a93 100644 --- a/src/js/services/profileService.js +++ b/src/js/services/profileService.js @@ -338,7 +338,9 @@ angular.module('copayApp.services') if (w) { return cb(gettext('Wallet already in Copay' + ": ") + w.walletName); } - root.storeData(walletClient, opts.bwsurl, cb); + root.storeData(walletClient, opts.bwsurl, function(err){ + return cb(err, walletId); + }); }; root.importWallet = function(str, opts, cb) {