diff --git a/src/App.jsx b/src/App.jsx index 2b7dca4..5a01848 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -97,7 +97,7 @@ import { useQuery } from "@tanstack/react-query"; import { CircularProgress } from "@mui/material"; import { ReactQueryDevtools } from "@tanstack/react-query-devtools"; import { getSystemApi } from "@jellyfin/sdk/lib/utils/api/system-api"; -import { setServerReachability, useServerStore } from "./utils/store/server"; +import { useServerStore } from "./utils/store/server"; const anim = { initial: { @@ -261,8 +261,6 @@ function App() { state.isPending, ]); - const [serverReachable] = useServerStore((state) => [state.reachable]); - const { enqueueSnackbar } = useSnackbar(); const serverSaved = async () => { diff --git a/src/routes/setup/serverList/index.jsx b/src/routes/setup/serverList/index.jsx index 3bb12cb..9ed31cb 100644 --- a/src/routes/setup/serverList/index.jsx +++ b/src/routes/setup/serverList/index.jsx @@ -20,6 +20,7 @@ import { AppBarBackOnly } from "../../../components/appBar/backOnly"; import { useNavigate } from "react-router-dom"; import { useSnackbar } from "notistack"; import { createApi } from "../../../utils/store/api"; +import { delUser } from "../../../utils/storage/user"; const ServerList = () => { const navigate = useNavigate(); @@ -36,6 +37,7 @@ const ServerList = () => { const handleServerChange = useMutation({ mutationFn: () => { setDefaultServer(serverState); + delUser(); }, onSuccess: async () => { defaultServer.refetch();