From bba12fb0ab86d464394bed388c4182dc8f4abc2c Mon Sep 17 00:00:00 2001 From: federico-tocci-dxc Date: Tue, 12 Nov 2024 14:51:37 +0100 Subject: [PATCH] fix(T246): modifica testo aggiunta cittadini a servizio con data futura 20241112 --- .../Entities/Services/citizensList.tsx | 20 +++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/fe-piattaforma/src/pages/administrator/AdministrativeArea/Entities/Services/citizensList.tsx b/fe-piattaforma/src/pages/administrator/AdministrativeArea/Entities/Services/citizensList.tsx index ab9ec2ad8..d00575bd7 100644 --- a/fe-piattaforma/src/pages/administrator/AdministrativeArea/Entities/Services/citizensList.tsx +++ b/fe-piattaforma/src/pages/administrator/AdministrativeArea/Entities/Services/citizensList.tsx @@ -322,12 +322,20 @@ const CitizensList: React.FC<{ dataServizio: Date }> = ({ dataServizio }) => { )} ) : ( - - )} + moment().isBefore(moment(dataServizio)) ? ( + + ) : ( + + ) + )}