Alteração para mostrar 0 quando não há nenhum atendimento em aberto
parent
ec19fb6799
commit
8ea22a00c5
|
@ -137,7 +137,7 @@ const TableUser = ({ classes, usersOnlineInfo, logout }) => {
|
|||
<TableCell>
|
||||
<div style={{ display: "flex", alignItems: "center", gap: "12px" }}>
|
||||
<Typography className={classes.tableCounterOpen}>
|
||||
{user.sumOpen === undefined ? 0 : user.sumOpen.count}
|
||||
{user.sumOpen === undefined || ('sumOpen' in user && user.sumOpen.count === '') ? 0 : user.sumOpen.count}
|
||||
</Typography>
|
||||
<Typography className={classes.tableCounterClosed}>
|
||||
{user.sumClosed === undefined ? 0 : user.sumClosed.count}
|
||||
|
|
Loading…
Reference in New Issue