Skip to content

Commit

Permalink
fix(EtablissementInput): reset error when etablissement fetching succ…
Browse files Browse the repository at this point in the history
…essful
  • Loading branch information
yohanngab committed Dec 2, 2024
1 parent 0ca13a1 commit a0e04fa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ui/src/users/Components/AddSiretDsfr/EtablissementInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ const EtablissementInput = ({ formik, setError, userSiret }) => {

formik.setFieldValue("etablissements", updatedEtablissements);
setSiretValue("");
setSiretError(null);
} else {
setSiretError("Le SIRET ne correspond pas à un établissement dispensant des formations de niveau 3 ou 4.");
}
Expand Down

0 comments on commit a0e04fa

Please sign in to comment.