Skip to content

Commit

Permalink
fix: siwe global import (#2240)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomiir authored May 10, 2024
1 parent 529218c commit 6870786
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/scaffold/src/partials/w3m-header/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import { customElement } from '@web3modal/ui'
import { LitElement, html } from 'lit'
import { state } from 'lit/decorators.js'
import styles from './styles.js'
import { SIWEController } from '@web3modal/siwe'

// -- Helpers ------------------------------------------- //
function headings() {
Expand Down Expand Up @@ -117,7 +116,7 @@ export class W3mHeader extends LitElement {
}

private async onClose() {
if (OptionsController.state.isSiweEnabled && SIWEController.state.status !== 'success') {
if (OptionsController.state.isSiweEnabled) {
const { SIWEController } = await import('@web3modal/siwe')
if (SIWEController.state.status !== 'success') {
await ConnectionController.disconnect()
Expand Down

0 comments on commit 6870786

Please sign in to comment.