From 49e610f9369755c15a62fa5df4622fb14bfa9fee Mon Sep 17 00:00:00 2001 From: Violet Caulfield Date: Sat, 1 Feb 2025 11:09:53 -0600 Subject: [PATCH] idk --- components/Login/helpers/server-address.tsx | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/components/Login/helpers/server-address.tsx b/components/Login/helpers/server-address.tsx index 7b7d6ba7..ec4167f9 100644 --- a/components/Login/helpers/server-address.tsx +++ b/components/Login/helpers/server-address.tsx @@ -22,7 +22,7 @@ export default function ServerAddress(): React.JSX.Element { const { server, setServer } = useAuthenticationContext(); const useServerMutation = useMutation({ - mutationFn: async () => { + mutationFn: () => { let jellyfin = new Jellyfin(JellyfinInfo); if (!!!serverAddress) @@ -32,11 +32,10 @@ export default function ServerAddress(): React.JSX.Element { return getSystemApi(api).getPublicSystemInfo(); }, - onSuccess: async (publicSystemInfoResponse) => { + onSuccess: (publicSystemInfoResponse) => { if (!!!publicSystemInfoResponse.data.Version) throw new Error("Jellyfin instance did not respond"); - console.debug("REMOVE THIS::onSuccess variable", publicSystemInfoResponse.data); console.log(`Connected to Jellyfin ${publicSystemInfoResponse.data.Version!}`); const server: JellifyServer = { @@ -59,9 +58,7 @@ export default function ServerAddress(): React.JSX.Element { return ( -

- Connect to Jellyfin -

+

Connect to Jellyfin