Skip to content

Commit

Permalink
Fix conditional check in JobItem/MainInfo to prevent it from renderin…
Browse files Browse the repository at this point in the history
…g 0 when there are no attempts
  • Loading branch information
edmundito committed Aug 16, 2022
1 parent 305003f commit 4964eac
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ const MainInfo: React.FC<MainInfoProps> = ({ job, attempts = [], isOpen, onExpan
) : (
<FormattedMessage id={`sources.${getJobStatus(job)}`} />
)}
{attempts.length && (
{attempts.length > 0 && (
<>
{attempts.length > 1 && (
<div className={styles.lastAttempt}>
Expand Down

0 comments on commit 4964eac

Please sign in to comment.