fix bogus bws error

This commit is contained in:
Javier 2016-12-19 17:07:58 -03:00
commit 645fc8444a
2 changed files with 9 additions and 3 deletions

View file

@ -140,7 +140,13 @@ angular.module('copayApp.services').factory('walletService', function($log, $tim
wallet.getStatus({
twoStep: true
}, function(err, ret) {
if (err) return cb(err);
if (err) {
if (err instanceof errors.NOT_AUTHORIZED) {
return cb('WALLET_NOT_REGISTERED');
}
return cb(err);
}
return cb(null, ret);
});
};