Skip to content

Commit

Permalink
Merge pull request #365 from hotosm/fix/minor-issues
Browse files Browse the repository at this point in the history
fix: show popup on task click although the project is rejected
  • Loading branch information
suzit-10 authored Nov 28, 2024
2 parents 1d6a2d9 + c7b5ba9 commit ff2ab37
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -265,8 +265,7 @@ const MapSection = ({ projectData }: { projectData: Record<string, any> }) => {

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<string, any>) => {
Expand Down

0 comments on commit ff2ab37

Please sign in to comment.