Skip to content

Commit

Permalink
Hide status None
Browse files Browse the repository at this point in the history
  • Loading branch information
henrypalacios committed Dec 21, 2023
1 parent 08e16d4 commit a67b6ae
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/hooks/useTxDispatchNotfication.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,16 @@ export function useTxDispatchNotification({
const id = toast.loading(`${msgPrefix} waiting for signature...`);
setIdToast(id);
}
if (idToast && tx.status === "None") {
// TODO, check this case
// toast.update(idToast, {
// render: `The ${msgPrefix} was cancelled`,
// type: "info",
// isLoading: false,
// autoClose: 500,
// });
setIdToast(0);
}
if (idToast && tx.status === "Broadcast") {
toast.update(idToast, {
render: `The ${msgPrefix} will be proccessed in a block`,
Expand Down

0 comments on commit a67b6ae

Please sign in to comment.