diff --git a/src/components/ProxyGroup.js b/src/components/ProxyGroup.js index c000535..ae1fe58 100644 --- a/src/components/ProxyGroup.js +++ b/src/components/ProxyGroup.js @@ -5,7 +5,7 @@ import { ChevronsDown } from 'react-feather'; import cx from 'classnames'; import { connect } from './StateProvider'; -import { getDelay, getProxies, getRtFilterSwitch } from '../store/proxies'; +import { getDelay, getRtFilterSwitch } from '../store/proxies'; import Proxy, { ProxySmall } from './Proxy'; import { SectionNameType } from './shared/Basic'; @@ -124,14 +124,14 @@ const getSortDelay = (d, w) => { const mapState = (s, { all }) => { const delay = getDelay(s); - const filterError = getRtFilterSwitch(s); + const filterByRt = getRtFilterSwitch(s); const groupList = []; const proxyList = []; let clonelist = [...all]; - if (filterError) { + if (filterByRt) { const filterList = clonelist.filter(name => { const d = delay[name]; if (d === undefined) { diff --git a/src/store/proxies.js b/src/store/proxies.js index 7eceec2..22b8f2b 100644 --- a/src/store/proxies.js +++ b/src/store/proxies.js @@ -28,7 +28,6 @@ const ProxyTypes = ['Shadowsocks', 'Snell', 'Socks5', 'Http', 'Vmess']; export const getProxies = s => s.proxies.proxies; export const getDelay = s => s.proxies.delay; export const getRtFilterSwitch = s => s.filterZeroRT; -export const switchRtFilter = s => (s.filterZeroRT = !getRtFilterSwitch(s)); export const getProxyGroupNames = s => s.proxies.groupNames; export const getProxyProviders = s => s.proxies.proxyProviders || []; export const getDangleProxyNames = s => s.proxies.dangleProxyNames;