From 0c004be98f062f79806a4ef95949f380d17571e1 Mon Sep 17 00:00:00 2001 From: kunish Date: Thu, 10 Oct 2024 18:57:35 +0800 Subject: [PATCH] fix(proxies): double specialType if statement --- src/components/ProxyNodeCard.tsx | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/src/components/ProxyNodeCard.tsx b/src/components/ProxyNodeCard.tsx index 681e6a55..2b810a09 100644 --- a/src/components/ProxyNodeCard.tsx +++ b/src/components/ProxyNodeCard.tsx @@ -18,7 +18,7 @@ export const ProxyNodeCard = (props: { proxyLatencyTestingMap, } = useProxies() const supportIPv6 = createMemo( - () => proxyIPv6SupportMap()[getNowProxyNodeName(props.proxyName || '')], + () => proxyIPv6SupportMap()[getNowProxyNodeName(proxyName || '')], ) const proxyNode = createMemo(() => proxyNodeMap()[proxyName]) @@ -47,16 +47,12 @@ export const ProxyNodeCard = (props: {
- -
- {formatProxyType(proxyNode()?.type)} -
+
+ {formatProxyType(proxyNode()?.type)} +
- -
- {specialType()} -
-
+ +
{specialType()}