Skip to content

Commit

Permalink
check undefined in compare
Browse files Browse the repository at this point in the history
  • Loading branch information
milan-deepfence committed Jul 2, 2024
1 parent 8cb425a commit 5243e67
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ export const isJiraIntegration = (integrationType: string) => {
export const isCloudComplianceNotification = (notificationType: string) => {
return (
(notificationType && notificationType.toLowerCase() === 'cloudcompliance') ||
notificationType.toLowerCase() === 'cloud_compliance'
notificationType?.toLowerCase() === 'cloud_compliance'
);
};

Expand Down

0 comments on commit 5243e67

Please sign in to comment.