fix: replace random ID generation with generateUUID()

This commit is contained in:
Linus Rath
2026-04-02 17:29:00 +02:00
parent d77dd1e3e1
commit 2d17ca71e3
3 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -12,7 +12,7 @@ export const useToastStore = create<ToastStore>((set) => ({
toasts: [],
addToast: (toast) => {
const id = Math.random().toString(36).substring(2, 11);
const id = crypto.randomUUID();
const newToast: Toast = {
...toast,
id,