From b987009f83290b53d18fa00513df7769b0b495da Mon Sep 17 00:00:00 2001 From: himanshu Date: Tue, 10 Dec 2024 11:14:30 +0530 Subject: [PATCH] fix setup tkey --- src/mpcCoreKit.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/mpcCoreKit.ts b/src/mpcCoreKit.ts index 7c0eabf..7b2dcdb 100644 --- a/src/mpcCoreKit.ts +++ b/src/mpcCoreKit.ts @@ -1026,14 +1026,14 @@ export class Web3AuthMPCCoreKit implements ICoreKit { } } await this.handleNewUser(importTssKey); - if (importTssKey) { - throw CoreKitError.tssKeyImportNotAllowed(); - } - } else { if (importTssKey && isSfaKey) { await this.tkey.addLocalMetadataTransitions({ input: [{ message: ONE_KEY_DELETE_NONCE }], privKey: [new BN(this.state.postBoxKey, "hex")] }); if (!this.tkey?.manualSync) await this.tkey?.syncLocalMetadataTransitions(); } + } else { + if (importTssKey) { + throw CoreKitError.tssKeyImportNotAllowed(); + } await this.handleExistingUser(); } }