Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
thecalcc committed Nov 1, 2024
1 parent d61ae52 commit 17d9204
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,11 @@ export class CoverageFormHeaderComponent extends React.PureComponent<IProps> {
const coverageProvider = value.assigned_to?.coverage_provider;
const assignmentState = value.assigned_to?.state;
const cancelled = value.workflow_status === ASSIGNMENTS.WORKFLOW_STATE.CANCELLED;
const canEditAssignment = planningUtils.isCoverageDraft(value) ||
(!!addNewsItemToPlanning && !value.coverage_id && !((value as ICoverageScheduledUpdate).scheduled_update_id));
const canEditAssignment = planningUtils.isCoverageDraft(value) || (
!!addNewsItemToPlanning
&& !value.coverage_id
&& !((value as ICoverageScheduledUpdate).scheduled_update_id)
);

if (!deskAssigned && (!userAssigned || !coverageProvider)) {
return (
Expand Down

0 comments on commit 17d9204

Please sign in to comment.