diff --git a/services/client/common/models/Address.js b/services/client/common/models/Address.js index 9d2af67cc..9d6429490 100644 --- a/services/client/common/models/Address.js +++ b/services/client/common/models/Address.js @@ -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();