From e24fe02f9b99196005b2a30dc6b9856eecdcd634 Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Mon, 6 Apr 2026 21:54:57 -0400 Subject: [PATCH] fix: Timeout on query notice --- app/hooks/useQueryNotices.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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]); }