Fix notification count
This commit is contained in:
parent
3c87a12eab
commit
0d01e02f42
@ -35,7 +35,7 @@ export default function Layout(props) {
|
||||
}, []);
|
||||
|
||||
function accountHeader() {
|
||||
const unreadNotifications = notifications?.filter(a => a.created_at > readNotifications).length ?? 0;
|
||||
const unreadNotifications = notifications?.filter(a => (a.created_at * 1000) > readNotifications).length ?? 0;
|
||||
return (
|
||||
<>
|
||||
<div className="btn btn-rnd notifications" onClick={() => navigate("/notifications")}>
|
||||
|
Loading…
x
Reference in New Issue
Block a user