diff --git a/frontend/src/routes/sponsor/register/stepRegistration.tsx b/frontend/src/routes/sponsor/register/stepRegistration.tsx index 9486b9ca60efea9cd81a0cb3f582750b40763a11..ff53f1dbf8e249310e25cd0a5b992824d83aa621 100644 --- a/frontend/src/routes/sponsor/register/stepRegistration.tsx +++ b/frontend/src/routes/sponsor/register/stepRegistration.tsx @@ -149,8 +149,11 @@ export default function StepRegistration() { statusText: undefined, errorBodyText: t('error.errorLoadOusRoleType'), }) + } else { + // Clear any errors + setFormDataErrorReport(undefined) } - }, []) + }, [ous, roleTypes]) return ( <Page>