Skip to content

Commit

Permalink
[fix] 💩 disable internal-notifications in navbar (#375)
Browse files Browse the repository at this point in the history
  • Loading branch information
dappsar committed Jul 20, 2024
1 parent f00bf9c commit 9c63877
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/components/Navbar/Navbar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,16 +56,17 @@ function Navbar() {
}
}

/*
useEffect(() => {
const notif = getNotificationsByUser(walletAddress) || []
const unreadNotifications = notif.filter((notification) => !notification.read)
setNotificationsNbr(unreadNotifications.length)
setNotificationsNbrClass(
unreadNotifications.length > 9 ? 'notification__badge__2' : 'notification__badge__1'
)
// setNotificationsNbr(20)
// setNotificationsNbrClass(20 > 9 ? 'notification__badge__2' : 'notification__badge__1')
}, [notifications, walletAddress]) //eslint-disable-line react-hooks/exhaustive-deps
}, [notifications, walletAddress]) // eslint-disable-line react-hooks/exhaustive-deps
*/

const fetchVersion = async () => {
const version = await getProductVersion()
return version
Expand Down

0 comments on commit 9c63877

Please sign in to comment.