Ensure 'tag' exists

This commit is contained in:
Bryan Ashby 2018-07-04 18:42:59 -06:00
parent 8922bb6683
commit e24511678d
1 changed files with 1 additions and 1 deletions

View File

@ -114,7 +114,7 @@ function FTNMessageScanTossModule() {
this.getLocalAreaTagByFtnAreaTag = function(ftnAreaTag) {
ftnAreaTag = ftnAreaTag.toUpperCase(); // always compare upper
return _.findKey(Config().messageNetworks.ftn.areas, areaConf => {
return areaConf.tag.toUpperCase() === ftnAreaTag;
return _.isString(areaConf.tag) && areaConf.tag.toUpperCase() === ftnAreaTag;
});
};