Fix wording. Hide ":" if prefix does not exist

This commit is contained in:
Gustavo Maximiliano Cortez 2015-11-04 16:47:58 -03:00
commit 435e8f54ab
2 changed files with 3 additions and 3 deletions

View file

@ -35,8 +35,8 @@ angular.module('copayApp.services')
root._createAddress(walletId, cb);
}, 5000);
} else if (err.code && err.code == 'MAIN_ADDRESS_GAP_REACHED') {
prefix = gettextCatalog.getString('Limit of address generation reached');
$log.warn(err.message);
prefix = null;
client.getMainAddresses({reverse: true, limit : 1}, function(err, addr) {
if (err) return cb(err);
return cb(null, addr[0].address);