diff --git a/package.nw/lib/roster/renderRoster.js b/package.nw/lib/roster/renderRoster.js index 5dd8bd81..39bb6a10 100644 --- a/package.nw/lib/roster/renderRoster.js +++ b/package.nw/lib/roster/renderRoster.js @@ -52,8 +52,10 @@ function renderRoster(callRoster, rosterSettings) var visibleCount = visibleCallList.length; var huntedCount = 0; - if (typeof (obj) !== "undefined" && typeof (obj.callObj) !== "undefined" && typeof (obj.callObj.hunting) !== "undefined") - { huntedCount = visibleCallList.filter(obj => Object.keys().length > 0).length } + if (typeof (obj) !== "undefined") + { + huntedCount = visibleCallList.filter(obj => Object.keys().length > 0).length + } var countParts = []; if (totalCount != visibleCount)