Skip to content

Commit

Permalink
Fix type error
Browse files Browse the repository at this point in the history
  • Loading branch information
nateweller committed Oct 2, 2024
1 parent a2c7b37 commit 35b609e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion projects/plugins/protect/src/js/hooks/use-fixers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export default function useFixers(): UseFixersResult {
return false;
}
const threatFix = fixersStatus.threats?.[ threatId ];
return 'status' in threatFix && threatFix.status === 'in_progress';
return threatFix && 'status' in threatFix && threatFix.status === 'in_progress';
},
[ fixersStatus ]
);
Expand Down

0 comments on commit 35b609e

Please sign in to comment.