Fix notification count

This commit is contained in:
Kieran 2023-01-02 22:56:21 +00:00
parent 3c87a12eab
commit 0d01e02f42
Signed by: Kieran
GPG Key ID: DE71CEB3925BE941

View File

@ -35,7 +35,7 @@ export default function Layout(props) {
}, []); }, []);
function accountHeader() { 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 ( return (
<> <>
<div className="btn btn-rnd notifications" onClick={() => navigate("/notifications")}> <div className="btn btn-rnd notifications" onClick={() => navigate("/notifications")}>