Clear app badge when view Notifications page

This commit is contained in:
Lim Chee Aun 2023-09-02 01:35:24 +08:00
parent 0e745663f0
commit 852bb27e81

View file

@ -194,6 +194,12 @@ function Notifications({ columnMode }) {
const announcementsListRef = useRef();
useLayoutEffect(() => {
if (navigator.clearAppBadge) {
navigator.clearAppBadge();
}
}, []);
useEffect(() => {
if (notificationID) {
states.routeNotification = {