diff --git a/src/components/ProxyPreviewBar.tsx b/src/components/ProxyPreviewBar.tsx index a482ade..b2dcd34 100644 --- a/src/components/ProxyPreviewBar.tsx +++ b/src/components/ProxyPreviewBar.tsx @@ -10,6 +10,7 @@ export const ProxyPreviewBar = (props: { const latencyList = createMemo(() => props.proxyNameList.map((name) => latencyMap()[name]), ) + const all = createMemo(() => latencyList().length) const good = createMemo( () => @@ -35,9 +36,7 @@ export const ProxyPreviewBar = (props: { const notConnected = createMemo( () => latencyList().filter( - (latency) => - latency === latencyQualityMap().NOT_CONNECTED || - typeof latency !== 'number', + (latency) => latency === latencyQualityMap().NOT_CONNECTED, ).length, ) @@ -47,27 +46,27 @@ export const ProxyPreviewBar = (props: {
+ /> + /> + /> + />