From 980c0968ad16ad46ca3925862290a6266230190c Mon Sep 17 00:00:00 2001 From: Danh Date: Wed, 19 Jul 2023 09:11:27 +0700 Subject: [PATCH] update default authen --- src/hooks/useKyberSwapConfig.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hooks/useKyberSwapConfig.ts b/src/hooks/useKyberSwapConfig.ts index 4bf08985bc..60170afc8e 100644 --- a/src/hooks/useKyberSwapConfig.ts +++ b/src/hooks/useKyberSwapConfig.ts @@ -66,7 +66,7 @@ const parseGlobalResponse = ( ): KyberswapGlobalConfig => { const data = responseData?.data?.config const aggregatorDomain = data?.aggregator ?? AGGREGATOR_API - const isEnableAuthenAggregator = !data ? true : !!data?.isEnableAuthenAggregator + const isEnableAuthenAggregator = !!data?.isEnableAuthenAggregator return { aggregatorDomain, aggregatorAPI: `${aggregatorDomain}/${NETWORKS_INFO[chainId].aggregatorRoute}/route/encode`,