From fbcd6893539246f08eeae8af3ed42b3728f13053 Mon Sep 17 00:00:00 2001 From: John Swanke Date: Fri, 6 Jun 2025 10:50:07 -0400 Subject: [PATCH] ACM-21051-Error-handing-issue-for-policy-template Signed-off-by: John Swanke --- src/Wizard.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Wizard.tsx b/src/Wizard.tsx index f2577c1..a0c6310 100644 --- a/src/Wizard.tsx +++ b/src/Wizard.tsx @@ -253,6 +253,10 @@ function MyFooter(props: { if (wizardContext.activeStep.name === lastStep.name) { // We are on the review step - show validation for all steps setShowValidation(true) + } else { + // if not on review step and there was a submit error + // assume user went back and fixed something + setSubmitError('') } }, [lastStep.name, setShowValidation, wizardContext.activeStep.name])