From ef30e27ad7c7ff59666eb8c6962878c98dc53d96 Mon Sep 17 00:00:00 2001 From: Giovanni-Josserand Date: Sat, 28 Mar 2026 17:02:08 +0100 Subject: [PATCH] use uuid instead of id to delete notifications --- src/components/Header/Header.tsx | 2 +- src/utils/notifications/deleteNotificationUser.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/Header/Header.tsx b/src/components/Header/Header.tsx index a287f8c..8616430 100644 --- a/src/components/Header/Header.tsx +++ b/src/components/Header/Header.tsx @@ -86,7 +86,7 @@ function Header() { } - async function deleteNotification(notificationId: number) { + async function deleteNotification(notificationId: string) { try { const result = await deleteNotificationUser(notificationId); if (result) { diff --git a/src/utils/notifications/deleteNotificationUser.ts b/src/utils/notifications/deleteNotificationUser.ts index 4322722..ce216e9 100644 --- a/src/utils/notifications/deleteNotificationUser.ts +++ b/src/utils/notifications/deleteNotificationUser.ts @@ -1,6 +1,6 @@ import getXSRFToken from "../getXSRF"; -export default async function deleteNotificationUser(notificationId:number) { +export default async function deleteNotificationUser(notificationId:string) { const csrfToken = await getXSRFToken(); try {