From 01f021f862805c8e5859ddd188ac4e544a7a450b Mon Sep 17 00:00:00 2001
From: Hugo SUBTIL <ext.sopra.husubtil@grandlyon.com>
Date: Mon, 26 Sep 2022 14:09:25 +0200
Subject: [PATCH] fix(profil): structure adresse with no number

---
 .../profile/profile-structure/profile-structure.component.ts  | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/app/profile/profile-structure/profile-structure.component.ts b/src/app/profile/profile-structure/profile-structure.component.ts
index f05282193..6013cf705 100644
--- a/src/app/profile/profile-structure/profile-structure.component.ts
+++ b/src/app/profile/profile-structure/profile-structure.component.ts
@@ -71,7 +71,9 @@ export class ProfileStructureComponent implements OnInit {
 
   public getAddress(): string {
     const address = this.structureWithOwners.structure.address;
-    return address.numero + ' ' + address.street + ' - ' + address.commune;
+    return address.numero
+      ? address.numero + ' ' + address.street + ' - ' + address.commune
+      : address.street + ' - ' + address.commune;
   }
 
   public closeAddMemberModal(memberAddRequested: boolean): void {
-- 
GitLab