Skip to content

Commit e24fe02

Browse files
committed
fix: Timeout on query notice
1 parent 34126a5 commit e24fe02

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/hooks/useQueryNotices.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,6 @@ export default function useQueryNotices() {
4040
}
4141

4242
if (message) {
43-
toast.success(message);
44-
4543
// Remove the notice param from the URL to prevent duplicate toasts
4644
const params = new URLSearchParams(window.location.search);
4745
params.delete("notice");
@@ -50,6 +48,8 @@ export default function useQueryNotices() {
5048
pathname: window.location.pathname,
5149
search: search ? `?${search}` : "",
5250
});
51+
52+
setTimeout(() => toast.success(message), 0);
5353
}
5454
}, [t, notice, history]);
5555
}

0 commit comments

Comments
 (0)