From 764b6fdee8a199db1a69b865525ee9cee5903e80 Mon Sep 17 00:00:00 2001 From: Florian Trayon <26360935+FlorianLeChat@users.noreply.github.com> Date: Tue, 9 Apr 2024 21:56:08 +0200 Subject: [PATCH] Added notification auto-fetching after marking them as all read --- app/[locale]/components/notification.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/[locale]/components/notification.tsx b/app/[locale]/components/notification.tsx index b71de4c..6401d6d 100644 --- a/app/[locale]/components/notification.tsx +++ b/app/[locale]/components/notification.tsx @@ -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" )