From c7b5ba970951dcdcc2eb822bc5ef4a3ecab85df0 Mon Sep 17 00:00:00 2001 From: Sujit Date: Thu, 28 Nov 2024 20:31:07 +0545 Subject: [PATCH] fix: show popup on task click although the project is rejected --- .../src/components/IndividualProject/MapSection/index.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/frontend/src/components/IndividualProject/MapSection/index.tsx b/src/frontend/src/components/IndividualProject/MapSection/index.tsx index 89bc2d68..82dabb8d 100644 --- a/src/frontend/src/components/IndividualProject/MapSection/index.tsx +++ b/src/frontend/src/components/IndividualProject/MapSection/index.tsx @@ -265,8 +265,7 @@ const MapSection = ({ projectData }: { projectData: Record }) => { return ( feature?.source?.includes('tasks-layer') && - !userDetails?.role?.includes('REGULATOR') && // Don't show popup if user role is regulator - projectData?.regulator_approval_status !== 'REJECTED' // Don't show popup if regulator rejected the approval + !userDetails?.role?.includes('REGULATOR') // Don't show popup if user role is regulator ); }} fetchPopupData={(properties: Record) => {