Browse Source

get rid of mouseevent parameter

master
Silberengel 10 months ago
parent
commit
64303b6ba1
  1. 4
      src/lib/components/LoginModal.svelte

4
src/lib/components/LoginModal.svelte

@ -4,7 +4,7 @@ @@ -4,7 +4,7 @@
const { show = false, onClose = () => {}, onLoginSuccess = () => {} } = $props<{
show?: boolean;
onClose?: (event: MouseEvent) => void;
onClose?: () => void;
onLoginSuccess?: () => void;
}>();
@ -14,7 +14,7 @@ @@ -14,7 +14,7 @@
$effect(() => {
if ($ndkSignedIn && show) {
onLoginSuccess();
onClose(new MouseEvent('click'));
onClose();
}
});

Loading…
Cancel
Save