diff --git a/web/SoulseekConnection.tsx b/web/SoulseekConnection.tsx index f4ad868..150dd90 100644 --- a/web/SoulseekConnection.tsx +++ b/web/SoulseekConnection.tsx @@ -52,7 +52,8 @@ export const SoulseekConnection = () => { setApiKey(''); }, [connection?.id]); - const submit = async () => { + const submit = async (ev: React.FormEvent) => { + ev.preventDefault(); setError(''); try { await save.mutateAsync({ url: url.trim(), apiKey: apiKey.trim() }); @@ -98,7 +99,7 @@ export const SoulseekConnection = () => { {connection && } -
+
+ );