From d214e09e50c879a92a73d0ef0762a9e830af92ce Mon Sep 17 00:00:00 2001 From: schmanu Date: Mon, 9 Oct 2023 16:03:56 +0200 Subject: [PATCH] fix: commitChanges after login --- src/hooks/wallets/mpc/useMPCWallet.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/hooks/wallets/mpc/useMPCWallet.ts b/src/hooks/wallets/mpc/useMPCWallet.ts index c83312a9f5..d3cb6b1826 100644 --- a/src/hooks/wallets/mpc/useMPCWallet.ts +++ b/src/hooks/wallets/mpc/useMPCWallet.ts @@ -88,10 +88,13 @@ export const useMPCWallet = (): MPCWalletHook => { } } - const finalizeLogin = () => { + const finalizeLogin = async () => { if (!mpcCoreKit || !onboard) { return } + + await mpcCoreKit.commitChanges() + if (mpcCoreKit.status === COREKIT_STATUS.LOGGED_IN) { connectWallet(onboard, { autoSelect: {