From f533e8d93753a947d22447138f47a9700abbb127 Mon Sep 17 00:00:00 2001 From: bloodwiing Date: Mon, 20 May 2024 12:23:59 +0300 Subject: [PATCH] Fix: Toasts could not be added at the same time --- src/lib/memory/toast.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/memory/toast.js b/src/lib/memory/toast.js index 72b189b..f6c89b5 100644 --- a/src/lib/memory/toast.js +++ b/src/lib/memory/toast.js @@ -27,7 +27,7 @@ export default toasts; export function addToastObject(toast) { /** @type {Toast & {id: ToastID}} */ const entry = { - id: hashOf(Date.now()), + id: hashOf(Math.random()), ...toast, }