From 145bd5353d8f4ca97a11a18b6adcf11407f4fadf Mon Sep 17 00:00:00 2001 From: Dreamacro <305009791@qq.com> Date: Sat, 20 Jun 2020 21:16:12 +0800 Subject: [PATCH] Fix: speedtest state update --- src/containers/Proxies/components/Proxy/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/containers/Proxies/components/Proxy/index.tsx b/src/containers/Proxies/components/Proxy/index.tsx index b17dbf8..ded574b 100644 --- a/src/containers/Proxies/components/Proxy/index.tsx +++ b/src/containers/Proxies/components/Proxy/index.tsx @@ -38,7 +38,7 @@ export function Proxy (props: ProxyProps) { const validDelay = err ? 0 : delay set(draft => { - const proxy = draft.proxies.find(p => p.name === proxy) + const proxy = draft.proxies.find(p => p.name === config.name) if (proxy) { proxy.history.push({ time: Date.now().toString(), delay: validDelay }) }