Skip to content

Commit

Permalink
remove await from markAsRead
Browse files Browse the repository at this point in the history
  • Loading branch information
webdevcody committed Feb 14, 2024
1 parent 13003c8 commit 071b961
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/notifications/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ function Notification({
className="ml-auto"
onClick={async () => {
if (!notification.isRead) {
await markAsRead({
markAsRead({
notificationId: notification._id,
});
}
Expand Down

0 comments on commit 071b961

Please sign in to comment.