diff --git a/packages/scaffold/src/partials/w3m-connect-custom-widget/index.ts b/packages/scaffold/src/partials/w3m-connect-custom-widget/index.ts index b4dcaf478a..588a6ffc9e 100644 --- a/packages/scaffold/src/partials/w3m-connect-custom-widget/index.ts +++ b/packages/scaffold/src/partials/w3m-connect-custom-widget/index.ts @@ -27,6 +27,10 @@ export class W3mConnectCustomWidget extends LitElement { ) } + public override disconnectedCallback() { + this.unsubscribe.forEach(unsubscribe => unsubscribe()) + } + // -- Render -------------------------------------------- // public override render() { const { customWallets } = OptionsController.state