From 9e4c5cdc77b307a2763c0ccb58ba3568f2d4aed5 Mon Sep 17 00:00:00 2001 From: Jalil Arfaoui Date: Tue, 29 Aug 2023 18:16:21 +0200 Subject: [PATCH] feat: do not show declaration link on profile page if none given --- src/routes/PageResistant.tsx | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/routes/PageResistant.tsx b/src/routes/PageResistant.tsx index 8fe9394..2252ea3 100644 --- a/src/routes/PageResistant.tsx +++ b/src/routes/PageResistant.tsx @@ -107,12 +107,14 @@ export const PageResistant = () => { id="block-yui_3_17_2_1_1663343055963_122180" >
-

- - Notre déclaration de désobéissance civile - - , en {resistant.date_declaration} -

+ {resistant.lien_declaration && ( +

+ + Notre déclaration de désobéissance civile + + , en {resistant.date_declaration} +

+ )}