Fix service status display logic in TabServizio component
This commit is contained in:
parent
a72bc074e4
commit
23680bb816
1 changed files with 3 additions and 3 deletions
|
|
@ -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>
|
||||||
)}
|
)}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue