fix: Timeout on query notice

This commit is contained in:
Tom Moor
2026-04-06 21:54:57 -04:00
parent 34126a55bf
commit e24fe02f9b
+2 -2
View File
@@ -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]);
}