diff --git a/src/components/Apply/Company/CompanyApplicationUtils.js b/src/components/Apply/Company/CompanyApplicationUtils.js index 750fb3bc..72b628a7 100644 --- a/src/components/Apply/Company/CompanyApplicationUtils.js +++ b/src/components/Apply/Company/CompanyApplicationUtils.js @@ -40,9 +40,9 @@ const ValidationMessages = Object.freeze({ }, }); -export const getValidationError = (error) => { +export const getValidationMessage = (description) => { const errorMsg = { title: "Unexpected Error!", text: "An unexpected error has occurred while validating your application. " }; - if (!error) { + if (!description) { return errorMsg; } if (typeof ValidationMessages[description] === "object") { diff --git a/src/pages/ValidationPage.js b/src/pages/ValidationPage.js index b0396816..bc70cfce 100644 --- a/src/pages/ValidationPage.js +++ b/src/pages/ValidationPage.js @@ -35,7 +35,7 @@ const useStyles = (isMobile) => makeStyles((theme) => ({ } }, - + })); const ValidationPage = () => { @@ -68,7 +68,7 @@ const ValidationPage = () => { const getMessageCard = (error) => { - const { title, text } = success ? successMessage : getValidationError(error); + const { title, text } = success ? successMessage : getValidationMessage(error); return (