10 lines
355 B
JavaScript
10 lines
355 B
JavaScript
function filedClaimEligible(item, detail) {
|
|
return Boolean(
|
|
item?.is_filed && !item?.is_assigned && !item?.is_completed &&
|
|
item?.state === 'open' && detail?.state === 'open' &&
|
|
Array.isArray(detail?.assignees) && detail.assignees.length === 0
|
|
);
|
|
}
|
|
|
|
if (typeof module !== 'undefined' && module.exports) module.exports = filedClaimEligible;
|