Skip to content

Commit

Permalink
add unsubscribe
Browse files Browse the repository at this point in the history
  • Loading branch information
svenvoskamp committed May 17, 2024
1 parent a8f4518 commit d084cfd
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d084cfd

Please sign in to comment.