From 8762cb6f5edf38ce7f00e9af2e6b9476ab75d3dc Mon Sep 17 00:00:00 2001 From: tomiir Date: Fri, 10 May 2024 14:22:30 +0200 Subject: [PATCH] fix: remove siwe global import on header --- packages/scaffold/src/partials/w3m-header/index.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/scaffold/src/partials/w3m-header/index.ts b/packages/scaffold/src/partials/w3m-header/index.ts index 5255b1fc86..38c34742c7 100644 --- a/packages/scaffold/src/partials/w3m-header/index.ts +++ b/packages/scaffold/src/partials/w3m-header/index.ts @@ -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() { @@ -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()