From 0d01e02f42063a3cf9192743fbd0e91e6d70f3c6 Mon Sep 17 00:00:00 2001 From: Kieran Date: Mon, 2 Jan 2023 22:56:21 +0000 Subject: [PATCH] Fix notification count --- src/pages/Layout.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/Layout.js b/src/pages/Layout.js index cf55ec71..16d88dae 100644 --- a/src/pages/Layout.js +++ b/src/pages/Layout.js @@ -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 ( <>
navigate("/notifications")}>