arreglado fallo al actualizar el consignatario predeterminado
This commit is contained in:
parent
dd9ec548e1
commit
cf9e2f3d14
|
@ -34,7 +34,7 @@ module.exports = function(Address) {
|
||||||
removeAllDefault(address.client);
|
removeAllDefault(address.client);
|
||||||
next();
|
next();
|
||||||
}
|
}
|
||||||
else if (address.default && !data.default)
|
else if (address.default && data.hasOwnProperty('default') && !data.default)
|
||||||
next(generateErrorDefaultAddress());
|
next(generateErrorDefaultAddress());
|
||||||
else
|
else
|
||||||
next();
|
next();
|
||||||
|
|
Loading…
Reference in New Issue