Skip to content

Commit

Permalink
use wider check
Browse files Browse the repository at this point in the history
Signed-off-by: DvoraShechter1 <[email protected]>
  • Loading branch information
DvoraShechter1 committed Oct 31, 2024
1 parent 12e5b98 commit fdc39fe
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,9 @@ const TabDetailsContent: React.FC<{
(a) => a.length
);

const taskState = application.tasks.currentAnalyzer?.state ?? "";
const taskSucceeded = TaskStates.Success.includes(taskState);

return (
<>
<TextContent className={`${spacing.mtMd} ${spacing.mbMd}`}>
Expand All @@ -213,8 +216,7 @@ const TabDetailsContent: React.FC<{
Issues
</Link>
<Text component="small">
{application.tasks.currentAnalyzer === undefined ||
application.tasks.currentAnalyzer.state === "Failed"
{!taskSucceeded
? t("terms.unassigned")
: currentPageReports.length === 0
? t("issues.noIssues")
Expand Down

0 comments on commit fdc39fe

Please sign in to comment.