Skip to content

Commit

Permalink
refactor: disable disconnected call for siwe if not connected (#2364)
Browse files Browse the repository at this point in the history
  • Loading branch information
enesozturk authored Jun 6, 2024
1 parent e3e8be8 commit 42420a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/scaffold/src/modal/w3m-modal/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export class W3mModal extends LitElement {
if (this.isSiweEnabled) {
const { SIWEController } = await import('@web3modal/siwe')

if (SIWEController.state.status !== 'success') {
if (SIWEController.state.status !== 'success' && this.connected) {
await ConnectionController.disconnect()
}
}
Expand Down

0 comments on commit 42420a5

Please sign in to comment.