Skip to content

Commit

Permalink
Reload transaction after signing
Browse files Browse the repository at this point in the history
  • Loading branch information
kristoferlund committed Aug 24, 2023
1 parent 33b55e6 commit f9b7472
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/frontend/src/model/safe/hooks/useSafeTransaction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,8 @@ export function useSafeTransaction({
const signature = await safe.signTransactionHash(safeTxHash);
await safeApiKit.confirmTransaction(safeTxHash, signature.data);
setSignState({ state: 'signed' });
// Wait 2 seconds, then reload the transaction
setTimeout(loadTransaction, 2000);
} catch (e) {
if (errorHasReason(e) && e.reason) {
toast.error(e.reason);
Expand Down

0 comments on commit f9b7472

Please sign in to comment.