From aafa2f5c0f3d3f30853934ed9f25550194ebfa2d Mon Sep 17 00:00:00 2001
From: Guilhem CARRON <gcarron@grandlyon.com>
Date: Thu, 15 Dec 2022 13:09:12 +0000
Subject: [PATCH] fix: hide unknown mail from structure list

---
 .../profile-structure/profile-structure.component.html      | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/app/profile/profile-structure/profile-structure.component.html b/src/app/profile/profile-structure/profile-structure.component.html
index 088650740..af083fd2e 100644
--- a/src/app/profile/profile-structure/profile-structure.component.html
+++ b/src/app/profile/profile-structure/profile-structure.component.html
@@ -92,7 +92,11 @@
       <div class="sectionContent infoSection">
         <p>{{ getAddress() }}</p>
         <p>{{ structure.contactPhone }}</p>
-        <a class="email" href="mailto:{{ structure.contactMail }}">
+        <a
+          *ngIf="structure.contactMail !== 'unknown@unknown.com'"
+          class="email"
+          href="mailto:{{ structure.contactMail }}"
+        >
           {{ structure.contactMail }}
         </a>
       </div>
-- 
GitLab