This commit is contained in:
Joan Sanchez 2017-06-01 08:52:25 +02:00
commit bb75fd783c
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@ module.exports = function(Address) {
removeAllDefault(address.client);
next();
}
else if (address.default && !data.default)
else if (address.default && data.hasOwnProperty('default') && !data.default)
next(generateErrorDefaultAddress());
else
next();