Skip to content

Commit

Permalink
Merge branch 'staging' of https://github.com/dataesr/bso-ui into staging
Browse files Browse the repository at this point in the history
  • Loading branch information
ahonestla committed Sep 19, 2024
2 parents 0cc93eb + aa20366 commit 7b582a1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
1 change: 1 addition & 0 deletions nginx/templates/default.conf.template
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,6 @@ server {
proxy_set_header content-type application/json;
proxy_ssl_server_name on;
proxy_pass https://api.brevo.com/v3/smtp/email;
client_max_body_size 10M;
}
}
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions src/components/SubmissionForm/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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].",
);
});
};
Expand Down

0 comments on commit 7b582a1

Please sign in to comment.