From 9c1c487795fdc70b25fc12ac4525cb15587e2aad Mon Sep 17 00:00:00 2001 From: Nur Fikri Date: Wed, 10 Jan 2024 14:31:54 +0700 Subject: [PATCH] fix: active wallet's offline signer not initialized --- src/components/TransactionDialog/TransactionDialogContent.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/TransactionDialog/TransactionDialogContent.tsx b/src/components/TransactionDialog/TransactionDialogContent.tsx index f6645ad5..a22e5822 100644 --- a/src/components/TransactionDialog/TransactionDialogContent.tsx +++ b/src/components/TransactionDialog/TransactionDialogContent.tsx @@ -127,12 +127,12 @@ function TransactionDialogContent({ raise(`executeRoute error: cannot find chain '${chainID}'`); const { wallets } = getWalletRepo(chain.chainName); - const wallet = wallets.find((w) => w.isActive) || raise( `executeRoute error: cannot find active wallet for '${chain.chainName}'`, ); + await wallet.initOfflineSigner(); return ( wallet.offlineSigner ||