Skip to content

Commit 73e2fe1

Browse files
authored
COMP-755 inspection requirement editing (#684)
1 parent b563c03 commit 73e2fe1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

compliance-web/src/components/App/Inspections/Profile/InspectionRequirements.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ const InspectionRequirements: React.FC<InspectionRequirementsProps> = ({
307307
<Typography variant="h6">Requirements</Typography>
308308
{!isDataLoading &&
309309
isRequirementsAllowed &&
310-
inspectionReportsData?.is_open_for_editing && (
310+
!inspectionReportsData?.date_issued && (
311311
<Box display={"flex"} gap={2}>
312312
<Button
313313
variant="text"

compliance-web/src/routes/_authenticated/ce-database/inspections/$inspectionNumber.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ function InspectionProfilePage() {
7676
return (
7777
isUserEditAllowed &&
7878
inspectionData?.inspection_status === InspectionStatusEnum.OPEN &&
79-
inspectionReportsData?.is_open_for_editing
79+
!inspectionReportsData?.date_issued
8080
);
8181
}, [inspectionData, isUserEditAllowed, inspectionReportsData]);
8282

0 commit comments

Comments
 (0)