Fix countClosed in openclosedoutqueue

pull/20/head
Renato Di Giacomo 2022-08-12 10:04:04 -03:00
parent 661dec9935
commit 2b07274aaa
1 changed files with 4 additions and 3 deletions

View File

@ -93,7 +93,8 @@ const TableUser = ({ classes, usersOnlineInfo, logout }) => {
</TableRow> </TableRow>
</TableHead> </TableHead>
<TableBody> {console.log(usersOnlineInfo)}
<TableBody style={{ overflowY: "scroll" }}>
{usersOnlineInfo && {usersOnlineInfo &&
usersOnlineInfo usersOnlineInfo
.filter((e) => { .filter((e) => {
@ -210,9 +211,9 @@ const TableUser = ({ classes, usersOnlineInfo, logout }) => {
title="Sem Fila" title="Sem Fila"
style={{ backgroundColor: "grey" }} style={{ backgroundColor: "grey" }}
> >
{user.openClosedOutQueue.countOpen === 0 {user.openClosedOutQueue.countClosed === 0
? 0 ? 0
: user.openClosedOutQueue.countOpen} : user.openClosedOutQueue.countClosed}
</Typography> </Typography>
</div> </div>
</TableCell> </TableCell>