Fix receive-tab for wallets not backed up
This commit is contained in:
parent
0a7ba4bd02
commit
30240d30cd
2 changed files with 9 additions and 10 deletions
|
|
@ -779,15 +779,14 @@ angular.module('copayApp.services').factory('walletService', function($log, $tim
|
|||
|
||||
if (!forceNew && addr) return cb(null, addr);
|
||||
|
||||
root.isReady(wallet, function(err) {
|
||||
if (err) return cb(err);
|
||||
if (!wallet.isComplete())
|
||||
return cb('WALLET_NOT_COMPLETE');
|
||||
|
||||
createAddress(wallet, function(err, _addr) {
|
||||
if (err) return cb(err, addr);
|
||||
storageService.storeLastAddress(wallet.id, _addr, function() {
|
||||
if (err) return cb(err);
|
||||
return cb(null, _addr);
|
||||
});
|
||||
createAddress(wallet, function(err, _addr) {
|
||||
if (err) return cb(err, addr);
|
||||
storageService.storeLastAddress(wallet.id, _addr, function() {
|
||||
if (err) return cb(err);
|
||||
return cb(null, _addr);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue