Merge pull request #3683 from adamdmharvey/typo-refactor

fix(catalog-import): Variable typo refactor
This commit is contained in:
Ben Lambert
2020-12-14 13:59:06 +01:00
committed by GitHub
4 changed files with 6 additions and 6 deletions
@@ -74,7 +74,7 @@ const ComponentConfigDisplay = ({
savePRLink,
catalogRouteRef,
}: Props) => {
const [errorOccured, setErrorOccured] = useState(false);
const [errorOccurred, setErrorOccurred] = useState(false);
const [submitting, setSubmitting] = useState(false);
const errorApi = useApi(errorApiRef);
const { submitPrToRepo, addLocation } = useGithubRepos();
@@ -92,7 +92,7 @@ const ComponentConfigDisplay = ({
nextStep();
}
} catch (e) {
setErrorOccured(true);
setErrorOccurred(true);
setSubmitting(false);
errorApi.post(e);
}
@@ -178,7 +178,7 @@ const ComponentConfigDisplay = ({
>
Next
</Button>
{errorOccured ? (
{errorOccurred ? (
<Button
style={{ marginLeft: '8px' }}
variant="outlined"
@@ -106,7 +106,7 @@ describe('createRouter', () => {
level: 50,
occurrences: 100,
projectId: 12345,
title: 'error occured',
title: 'error occurred',
uniqueOccurrences: 10,
},
counts: [10, 10, 10, 10, 10, 50],
@@ -40,7 +40,7 @@ describe('RollbarProjectPage component', () => {
level: 50,
occurrences: 100,
projectId: 12345,
title: 'error occured',
title: 'error occurred',
uniqueOccurrences: 10,
},
counts: [10, 10, 10, 10, 10, 50],
@@ -117,7 +117,7 @@ export class JobProcessor implements Processor {
// Complete the current stage
stage.status = 'COMPLETED';
} catch (error) {
// Log to the current stage the error that occured and fail the stage.
// Log to the current stage the error that occurred and fail the stage.
stage.status = 'FAILED';
logger.error(`Stage failed with error: ${error.message}`);