Skip to content

Commit

Permalink
Update header.mjs
Browse files Browse the repository at this point in the history
  • Loading branch information
mythz committed Apr 6, 2024
1 parent 5aa40cd commit 9801188
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions MyApp/wwwroot/mjs/header.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,9 @@ const NotificationsMenu = {

async function markAll() {
results.value.forEach(x => x.read = true)
await client.api(new MarkAsRead({ allNotifications: true }))
const api = await client.api(new MarkAsRead({ allNotifications: true }))
if (api.succeeded) {
const alert = $1('#new-achievements')
const alert = $1('#new-notifications')
if (alert) {
alert.classList.remove('text-red-500')
alert.classList.add('text-transparent')
Expand Down

0 comments on commit 9801188

Please sign in to comment.