fix data. handling
This commit is contained in:
parent
136755fcda
commit
72827b12a6
@ -37,13 +37,14 @@ AddressController.prototype.show = function(req, res) {
|
||||
}
|
||||
|
||||
this._address.getAddressSummary(req.addr, options, function(err, data) {
|
||||
|
||||
if (data.addrStr)
|
||||
data.addrStr = self.common.translateOutputAddress(data.addrStr);
|
||||
|
||||
if(err) {
|
||||
return self.common.handleErrors(err, res);
|
||||
}
|
||||
|
||||
if (data && data.addrStr)
|
||||
data.addrStr = self.common.translateOutputAddress(data.addrStr);
|
||||
|
||||
|
||||
res.jsonp(data);
|
||||
});
|
||||
};
|
||||
|
||||
Loading…
Reference in New Issue
Block a user