From fff3502e53b8e191ac269cf6537cbd813d140251 Mon Sep 17 00:00:00 2001 From: Constantin Graf Date: Thu, 24 Sep 2026 11:16:25 +0200 Subject: [PATCH] Updated UUID generation --- resources/js/utils/notification.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/js/utils/notification.ts b/resources/js/utils/notification.ts index 97e78380..9e27095d 100644 --- a/resources/js/utils/notification.ts +++ b/resources/js/utils/notification.ts @@ -19,7 +19,7 @@ export const useNotificationsStore = defineStore('notifications', () => { const showActionBlockedModal = ref(false); function addNotification(type: NotificationType, title: string, message?: string) { - const uuid = Math.random().toString(36).substring(7); + const uuid = crypto.randomUUID(); notifications.value.push({ title, message, type, uuid }); setTimeout(() => {