From 2781da89060ed689774e3ed3b3885de10c9abc6d Mon Sep 17 00:00:00 2001 From: Kartik Sharma Date: Fri, 21 Nov 2025 12:04:36 +0530 Subject: [PATCH] Change the logic according to archieve show by status. --- src/components/ServiceProject/JobList.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/ServiceProject/JobList.jsx b/src/components/ServiceProject/JobList.jsx index c596c840..e1c08251 100644 --- a/src/components/ServiceProject/JobList.jsx +++ b/src/components/ServiceProject/JobList.jsx @@ -113,9 +113,9 @@ const JobList = ({ isArchive }) => { const canArchive = (statusId) => { 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; };