Skip to content

Commit 0810c98

Browse files
authored
fix(ConnectWalletForm): recheck isKeyAdded before asking (#1369)
1 parent 58be64f commit 0810c98

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/pages/popup/components/ConnectWalletForm.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -265,9 +265,9 @@ export const ConnectWalletForm = ({
265265
}
266266
}
267267

268-
const walletInfo =
269-
walletAddressInfo ??
270-
(await getWalletInfo(toWalletAddressUrl(walletAddressUrl)));
268+
const walletInfo = walletAddressInfo
269+
? await getWalletInfo(walletAddressInfo.walletAddress.id)
270+
: await getWalletInfo(toWalletAddressUrl(walletAddressUrl));
271271

272272
if (
273273
!walletInfo.isKeyAdded &&

0 commit comments

Comments
 (0)