From f9b7472e6acbbe5427f861ae1a99f15981997d7e Mon Sep 17 00:00:00 2001 From: Kristofer Date: Thu, 24 Aug 2023 09:36:17 +0200 Subject: [PATCH] Reload transaction after signing --- packages/frontend/src/model/safe/hooks/useSafeTransaction.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/frontend/src/model/safe/hooks/useSafeTransaction.ts b/packages/frontend/src/model/safe/hooks/useSafeTransaction.ts index 974620c64..290a6f151 100644 --- a/packages/frontend/src/model/safe/hooks/useSafeTransaction.ts +++ b/packages/frontend/src/model/safe/hooks/useSafeTransaction.ts @@ -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);