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

Loading…
Cancel
Save