chore(scaffolder): trying to fix the linting and tsc issues

This commit is contained in:
blam
2020-11-22 03:20:42 +01:00
parent b877f46fde
commit 9cdf4413db
@@ -28,7 +28,7 @@ import { Job } from '../../types';
import { JobStage } from '../JobStage/JobStage';
type Props = {
job: Job;
job: Job | null;
toCatalogLink?: string;
};
@@ -47,6 +47,9 @@ export const JobStatusModal = ({ job, toCatalogLink }: Props) => {
};
const onClose = useCallback(() => {
if (!job) {
return;
}
if (job.status === 'COMPLETED' || job.status === 'FAILED') {
setOpen(false);
}