Avoid errors on invalid address
This commit is contained in:
parent
368a8c0c2e
commit
c70d5d199b
1 changed files with 1 additions and 1 deletions
|
|
@ -658,7 +658,7 @@ Wallet.prototype._onAddressBook = function(senderId, data) {
|
|||
var self = this,
|
||||
hasChange;
|
||||
_.each(data.addressBook, function(value, key) {
|
||||
if (key && !self.addressBook[key] && Address.validate(key)) {
|
||||
if (key && !self.addressBook[key] && _.isString(key) && Address.validate(key)) {
|
||||
|
||||
self.addressBook[key] = _.pick(value, ['createdTs', 'label']);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue