diff --git a/app/hooks/useQueryNotices.ts b/app/hooks/useQueryNotices.ts index da827e468f..8a3379f5ec 100644 --- a/app/hooks/useQueryNotices.ts +++ b/app/hooks/useQueryNotices.ts @@ -40,8 +40,6 @@ export default function useQueryNotices() { } if (message) { - toast.success(message); - // Remove the notice param from the URL to prevent duplicate toasts const params = new URLSearchParams(window.location.search); params.delete("notice"); @@ -50,6 +48,8 @@ export default function useQueryNotices() { pathname: window.location.pathname, search: search ? `?${search}` : "", }); + + setTimeout(() => toast.success(message), 0); } }, [t, notice, history]); }