Skip to content

Commit

Permalink
Fix Discarded By condition
Browse files Browse the repository at this point in the history
  • Loading branch information
ZIJ committed Aug 8, 2024
1 parent 163ba78 commit 381e3bc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ export const ProjectRunDetails: React.FC<{
{run.is_approved === true && (
<T.Small className="flex items-center"><CheckCircle2 className="size-5 text-green-500 mr-2" /> Approved by: </T.Small>
)}
{run.is_approved === false && (
{run.status === ToTitleCase('discarded') && (
<T.Small className="flex items-center"><XCircle className="text-red-500 mr-2" /> Discarded by: </T.Small>
)}
{run.is_approved !== null && (
Expand Down

0 comments on commit 381e3bc

Please sign in to comment.