Skip to content

Commit

Permalink
refactor(backoffice-v2): addressed PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Omri-Levy committed Feb 18, 2024
1 parent f53dd9e commit 2abd651
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,16 +60,16 @@ export const AlertsHeader: FunctionComponent<{
id: decision,
value: (
<>
{lowerCase(decision) === 'reject' && (
{lowerCase(decision) === lowerCase(alertStateToDecision.REJECTED) && (
<span className={`text-destructive`}>{decision}</span>
)}

{lowerCase(decision) === 'not suspicious' && (
{lowerCase(decision) === lowerCase(alertStateToDecision.NOT_SUSPICIOUS) && (
<span className={`text-success`}>{decision}</span>
)}

{lowerCase(decision) !== 'reject' &&
lowerCase(decision) !== 'not suspicious' &&
{lowerCase(decision) !== lowerCase(alertStateToDecision.REJECTED) &&
lowerCase(decision) !== lowerCase(alertStateToDecision.NOT_SUSPICIOUS) &&
decision}
</>
),
Expand Down
2 changes: 1 addition & 1 deletion services/workflows-service/prisma/data-migrations

0 comments on commit 2abd651

Please sign in to comment.