Fix get biz data func to use ID

This commit is contained in:
Vortrex
2020-12-18 19:01:25 -06:00
parent 996cbb4105
commit d65fb9774c

View File

@@ -608,7 +608,10 @@ function getBusinessOwnerTypeText(ownerType) {
// ---------------------------------------------------------------------------
function getBusinessData(businessId) {
return (!isNull(getServerData().businesses[businessId])) ? getServerData().businesses[businessId] : false;
if(typeof getServerData().businesses[businessId] != null) {
return getServerData().businesses[businessId];
}
return false;
}
// ---------------------------------------------------------------------------