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