diff --git a/src/pages/proxies.tsx b/src/pages/proxies.tsx index 0df7cd1e33760705ba5c09dab9215a337a4fc461..d848850bc24ed2ec4996616d0c3ebce94b78ad7f 100644 --- a/src/pages/proxies.tsx +++ b/src/pages/proxies.tsx @@ -17,7 +17,7 @@ const ProxyPage = () => { const { data: clashConfig } = useSWR("getClashConfig", getClashConfig); const modeList = ["rule", "global", "direct"]; - const curMode = clashConfig?.mode.toLowerCase() ?? "direct"; + const curMode = clashConfig?.mode.toLowerCase(); const { groups = [], proxies = [] } = proxiesData ?? {}; // make sure that fetch the proxies successfully