Skip to content

Commit

Permalink
simplify job started check
Browse files Browse the repository at this point in the history
  • Loading branch information
alvarezmelissa87 committed Sep 23, 2020
1 parent 7642d3e commit 8131215
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,7 @@ export const CreateStepFooter: FC<Props> = ({ jobId, jobType, showProgress }) =>
// Check job has started. Jobs that fail to start will also have STOPPED state
setJobFinished(
jobStats.state === DATA_FRAME_TASK_STATE.STOPPED &&
jobStats.progress &&
jobStats.progress[0]?.progress_percent > 0
progressStats.currentPhase === progressStats.totalPhases
);
}
} else {
Expand Down

0 comments on commit 8131215

Please sign in to comment.