Skip to content

Commit

Permalink
Update close event name
Browse files Browse the repository at this point in the history
  • Loading branch information
aryzing committed Mar 22, 2024
1 parent 25cf924 commit b3aca05
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions src/lib/WalletProviderSelector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,7 @@ export function WalletProviderSelector() {

onCleanup(() => {
window.removeEventListener(open, handleOpen);
window.removeEventListener(
"sats-connect_wallet-selector_close",
handleClose,
);
window.removeEventListener(close, handleClose);
});

const [root, setRoot] = createSignal<HTMLDivElement>();
Expand Down
2 changes: 1 addition & 1 deletion src/selector-events.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ declare global {
"sats-connect_wallet-provider-selector_select": CustomEvent<string>;
"sats-connect_wallet-provider-selector_cancel": CustomEvent;
"sats-connect_wallet-provider-selector_open": CustomEvent;
"sats-connect_wallet-selector_close": CustomEvent;
"sats-connect_wallet-provider-selector_close": CustomEvent;
}
}

0 comments on commit b3aca05

Please sign in to comment.