Fix: Toasts could not be added at the same time

This commit is contained in:
Donatas Kirda 2024-05-20 12:23:59 +03:00
parent 6a1788292a
commit f533e8d937
Signed by: bloodwiing
GPG Key ID: 63020D8D3F4A164F

View File

@ -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,
}