diff --git a/web/app/components/base/toast/index.tsx b/web/app/components/base/toast/index.tsx index bfc1f6d8234673..b9a6de9fe5ac00 100644 --- a/web/app/components/base/toast/index.tsx +++ b/web/app/components/base/toast/index.tsx @@ -127,8 +127,10 @@ Toast.notify = ({ {}, close: () => { - if (holder) + if (holder) { + root.unmount() holder.remove() + } }, }}> @@ -136,8 +138,10 @@ Toast.notify = ({ ) document.body.appendChild(holder) setTimeout(() => { - if (holder) + if (holder) { + root.unmount() holder.remove() + } }, duration || defaultDuring) } }