Fix service status display logic in TabServizio component

This commit is contained in:
Marco Pedone 2025-08-13 16:55:47 +02:00
parent a72bc074e4
commit 23680bb816

View file

@ -124,10 +124,10 @@ export const TabServizio = ({
)} )}
</TableCell> </TableCell>
<TableCell> <TableCell>
{servizio.isOkAcconto && servizio.decorrenza !== null ? ( {servizio.isInterrotto ? (
<span className="text-green-500">Attivo</span>
) : servizio.isInterrotto ? (
<span className="text-red-500">Interrotto</span> <span className="text-red-500">Interrotto</span>
) : servizio.isOkAcconto && servizio.decorrenza !== null ? (
<span className="text-green-500">Attivo</span>
) : ( ) : (
<span className="text-neutral-500">Inattivo</span> <span className="text-neutral-500">Inattivo</span>
)} )}