Fix: Toasts could not be added at the same time
This commit is contained in:
@@ -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,
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user