fix: address build + aff req admin bug
All checks were successful
Deploy Production Server / if_merged (pull_request) Successful in 10m0s

This commit is contained in:
Thibaut Valentin 2025-08-15 21:48:16 +02:00
parent d740ad255f
commit 18ea38f85a
2 changed files with 14 additions and 4 deletions

View File

@ -17,14 +17,23 @@ function formatAdresse(data) {
}
function reconstruireAdresse(infos) {
console.log(infos);
let adresseReconstruite = "";
adresseReconstruite += infos.numero_voie + ' ' + formatAdresse(infos.type_voie) + ' ';
if(infos.numero_voie === null){
if (infos.complement_adresse) {
adresseReconstruite += formatAdresse(infos.complement_adresse) + ', ';
}
}else{
adresseReconstruite += infos.numero_voie + ' ';
}
adresseReconstruite += formatAdresse(infos.type_voie) + ' ';
adresseReconstruite += formatAdresse(infos.libelle_voie) + ', ';
adresseReconstruite += infos.code_postal + ' ' + infos.libelle_commune + ', ';
if (infos.complement_adresse) {
adresseReconstruite += infos.complement_adresse.toLowerCase() + ', ';
if (infos.complement_adresse && infos.numero_voie !== null) {
adresseReconstruite += formatAdresse(infos.complement_adresse) + ', ';
}
if (infos.code_cedex && infos.libelle_cedex) {
adresseReconstruite += 'Cedex ' + infos.code_cedex + ' - ' + infos.libelle_cedex;
@ -400,4 +409,4 @@ export function DemandeAffOk() {
espace FFSAF</p>
</div>
);
}
}

View File

@ -70,6 +70,7 @@ function Content({data, refresh}) {
formData.append('siret', event.target.siret.value);
formData.append('rna', event.target.rna.value);
formData.append('address', event.target.address.value);
formData.append('contact', event.target.contact.value);
if (event.target.logo.files[0])
formData.append('logo', event.target.logo.files[0]);