Skip to content

Commit

Permalink
fix: commitChanges after login
Browse files Browse the repository at this point in the history
  • Loading branch information
schmanu committed Oct 9, 2023
1 parent b0f2238 commit d214e09
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/hooks/wallets/mpc/useMPCWallet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down

0 comments on commit d214e09

Please sign in to comment.