Skip to content

Commit

Permalink
Added notification auto-fetching after marking them as all read
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianLeChat committed Apr 9, 2024
1 parent a14c3ae commit 764b6fd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/[locale]/components/notification.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,9 @@ export default function Notifications()
// Suppression de toutes les notifications.
setNotifications( [] );

// Récupération des notifications mises à jour.
fetchNotifications();

// Envoi d'une notification de succès.
toast.success( formMessages( "infos.action_success" ), {
description: formMessages( "infos.notifications_read" )
Expand Down

0 comments on commit 764b6fd

Please sign in to comment.