fix: mark notification as read when link is visited
This commit is contained in:
@@ -230,6 +230,7 @@ const handleMarkAsRead = (logName) => {
|
|||||||
|
|
||||||
const navigateToPage = (log) => {
|
const navigateToPage = (log) => {
|
||||||
if (!log.link) return
|
if (!log.link) return
|
||||||
|
handleMarkAsRead(log.name)
|
||||||
let link = log.link.split('/')
|
let link = log.link.split('/')
|
||||||
if (link[2] == 'courses') {
|
if (link[2] == 'courses') {
|
||||||
router.push({
|
router.push({
|
||||||
|
|||||||
Reference in New Issue
Block a user