Skip to content

Commit

Permalink
🚸 chore: remove pwd store on sdk disconnect (#281)
Browse files Browse the repository at this point in the history
  • Loading branch information
rustin01 authored Dec 31, 2024
1 parent b977731 commit 0f83dd7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/sdk/src/lib/wallet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ export class HibitIdWallet {
await this._iframeReadyPromise.promise;
this._connected = false;
// this._disconnectedPromise = new BridgePromise<boolean>()
// this._rpc?.call(HibitIdExposeRPCMethod.DISCONNECT, {})
await this._rpc?.call(WalletExposeRPCMethod.DISCONNECT, {})
// await this._disconnectedPromise.promise
// this.dispose()
};
Expand Down Expand Up @@ -665,7 +665,6 @@ export class HibitIdWallet {
console.debug('[sdk on Disconnected]');
this._connected = false;
this._disconnectedPromise?.resolve(true);
this._disconnectedPromise = null;
};

private getRpcErrorMessage = (e: any) => {
Expand Down

0 comments on commit 0f83dd7

Please sign in to comment.