Skip to content

Commit 874bb7c

Browse files
committed
fix: take remoteclient in to status consideration
1 parent 7db5d95 commit 874bb7c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mpcCoreKit.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ export class Web3AuthMPCCoreKit implements ICoreKit, IMPCContext {
186186
const { tkey } = this;
187187
if (!tkey) return COREKIT_STATUS.NOT_INITIALIZED;
188188
if (!tkey.metadata) return COREKIT_STATUS.INITIALIZED;
189-
if (!tkey.secp256k1Key || !this.state.factorKey) return COREKIT_STATUS.REQUIRED_SHARE;
189+
if (!tkey.secp256k1Key || !(this.state.factorKey || this.state.remoteClient.remoteFactorPub)) return COREKIT_STATUS.REQUIRED_SHARE;
190190
return COREKIT_STATUS.LOGGED_IN;
191191
} catch (e) {}
192192
return COREKIT_STATUS.NOT_INITIALIZED;

0 commit comments

Comments
 (0)