-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'staging' of https://github.com/dataesr/bso-ui into staging
- Loading branch information
Showing
3 changed files
with
8 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -101,7 +101,7 @@ const SubmissionForm = () => { | |
setIsError(true); | ||
const errorMessage = errors.length === 1 | ||
? `Un caractère spécial a été détecté à la ligne ${errors[0]}. Merci de corriger votre fichier afin de le soumettre.` | ||
: `Un caractère spécial a été détecté aux ${errors.join( | ||
: `Un caractère spécial a été détecté aux lignes ${errors.join( | ||
', ', | ||
)}. Merci de corriger votre fichier afin de le soumettre.`; | ||
setMessage(errorMessage); | ||
|
@@ -145,10 +145,11 @@ const SubmissionForm = () => { | |
"Merci pour votre envoi! Si tout s'est bien passé, vous allez recevoir une copie du mail envoyé à l'équipe du baromètre.", | ||
); | ||
}) | ||
.catch(() => { | ||
.catch((e) => { | ||
console.error(e); | ||
setIsError(true); | ||
setMessage( | ||
"Error lors de l'envoi de votre fichier, merci de contacter [email protected].", | ||
"Erreur lors de l'envoi de votre fichier, merci de contacter [email protected].", | ||
); | ||
}); | ||
}; | ||
|