Fixed user offline count
parent
a5ac537373
commit
0ea0c2e11b
|
@ -42,7 +42,6 @@ import { Can } from "../../components/Can";
|
|||
import { Button } from "@material-ui/core";
|
||||
import { id } from "date-fns/locale";
|
||||
|
||||
|
||||
const useStyles = makeStyles((theme) => ({
|
||||
container: {
|
||||
paddingTop: theme.spacing(4),
|
||||
|
@ -363,8 +362,7 @@ const Dashboard = () => {
|
|||
{
|
||||
usersOnlineInfo.filter(
|
||||
(status) =>
|
||||
status.statusOnline &&
|
||||
(status.statusOnline.status === "offline" || status.statusOnline)
|
||||
status.statusOnline || status.statusOnline.status === "offline"
|
||||
).length
|
||||
}
|
||||
</Typography>
|
||||
|
|
Loading…
Reference in New Issue