Skip to content

Commit

Permalink
testing fix to remove 'approved by' for failed state
Browse files Browse the repository at this point in the history
  • Loading branch information
psiddharthdesign committed Aug 6, 2024
1 parent d3bafff commit 5b0e814
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -315,13 +315,13 @@ export const ProjectRunDetails: React.FC<{
)}

</div>
{['approved', 'pending_apply', 'running_apply', 'succeeded', 'failed'].includes(ToSnakeCase(run.status)) && (
{['approved', 'pending_apply', 'running_apply', 'succeeded'].includes(ToSnakeCase(run.status)) && (
<T.Small className="flex items-center"><CheckCircle2 className="size-5 text-green-500 mr-2" /> Approved by: </T.Small>
)}
{run.status === ToTitleCase('discarded') && (
<T.Small className="flex items-center"><XCircle className="text-red-500 mr-2" /> Discarded by: </T.Small>
)}
{!(["queued", "pending_plan", "running_plan", "pending_approval"].includes(ToSnakeCase(run.status))) && (
{!(["queued", "pending_plan", "running_plan", "pending_approval", 'failed'].includes(ToSnakeCase(run.status))) && (
<motion.div
className="pt-4 mt-auto"
initial={{ opacity: 0, y: 50 }}
Expand Down

0 comments on commit 5b0e814

Please sign in to comment.