Change the logic according to archieve show by status.

This commit is contained in:
Kartik Sharma 2025-11-21 12:04:36 +05:30
parent d13c48dd39
commit 2781da8906

View File

@ -113,9 +113,9 @@ const JobList = ({ isArchive }) => {
const canArchive = (statusId) => { const canArchive = (statusId) => {
const closedId = JOBS_STATUS_IDS.find((s) => s.label === "Closed")?.id; const closedId = JOBS_STATUS_IDS.find((s) => s.label === "Closed")?.id;
const workDoneId = JOBS_STATUS_IDS.find((s) => s.label === "Work Done")?.id; const reviewDoneId = JOBS_STATUS_IDS.find((s) => s.label === "Review Done")?.id;
return statusId === closedId || statusId === workDoneId; return statusId === closedId || statusId === reviewDoneId;
}; };