Fix: Toasts could not be added at the same time
This commit is contained in:
parent
6a1788292a
commit
f533e8d937
@ -27,7 +27,7 @@ export default toasts;
|
|||||||
export function addToastObject(toast) {
|
export function addToastObject(toast) {
|
||||||
/** @type {Toast & {id: ToastID}} */
|
/** @type {Toast & {id: ToastID}} */
|
||||||
const entry = {
|
const entry = {
|
||||||
id: hashOf(Date.now()),
|
id: hashOf(Math.random()),
|
||||||
...toast,
|
...toast,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user