Alteração para mostrar 0 quando não há nenhum atendimento em aberto

pull/20/head
adriano 2022-08-10 15:48:44 -03:00
parent ec19fb6799
commit 8ea22a00c5
1 changed files with 1 additions and 1 deletions

View File

@ -137,7 +137,7 @@ const TableUser = ({ classes, usersOnlineInfo, logout }) => {
<TableCell> <TableCell>
<div style={{ display: "flex", alignItems: "center", gap: "12px" }}> <div style={{ display: "flex", alignItems: "center", gap: "12px" }}>
<Typography className={classes.tableCounterOpen}> <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>
<Typography className={classes.tableCounterClosed}> <Typography className={classes.tableCounterClosed}>
{user.sumClosed === undefined ? 0 : user.sumClosed.count} {user.sumClosed === undefined ? 0 : user.sumClosed.count}