From b3aca054041ac3a73a3f3b894e6cb1f4a471fd69 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eduard=20Bardaj=C3=AD=20Puig?= Date: Fri, 22 Mar 2024 14:52:23 +0100 Subject: [PATCH] Update close event name --- src/lib/WalletProviderSelector.tsx | 5 +---- src/selector-events.ts | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/src/lib/WalletProviderSelector.tsx b/src/lib/WalletProviderSelector.tsx index 96d57c5..601c0b8 100644 --- a/src/lib/WalletProviderSelector.tsx +++ b/src/lib/WalletProviderSelector.tsx @@ -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(); diff --git a/src/selector-events.ts b/src/selector-events.ts index 9ed15bc..5494914 100644 --- a/src/selector-events.ts +++ b/src/selector-events.ts @@ -6,6 +6,6 @@ declare global { "sats-connect_wallet-provider-selector_select": CustomEvent; "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; } }