From 7517cb2cc56aab494be0a7eacab04c1b6899783b Mon Sep 17 00:00:00 2001 From: Tore Brede <Tore.Brede@uib.no> Date: Wed, 15 Dec 2021 10:54:30 +0100 Subject: [PATCH] Quick fix error message showing --- frontend/src/routes/sponsor/register/stepRegistration.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/frontend/src/routes/sponsor/register/stepRegistration.tsx b/frontend/src/routes/sponsor/register/stepRegistration.tsx index 9486b9ca..ff53f1db 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> -- GitLab