From a7c0f1407e31213534f725f89e3a4a03765d2dfc Mon Sep 17 00:00:00 2001 From: XiaoYhun Date: Thu, 22 Jun 2023 13:54:27 +0700 Subject: [PATCH] chore: change docs updated date, skip kyberai banner for KNC (#2009) --- src/components/KyberAITokenBanner/index.tsx | 15 ++++++++------- src/constants/index.ts | 2 +- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/src/components/KyberAITokenBanner/index.tsx b/src/components/KyberAITokenBanner/index.tsx index c7ecbe33ef..59a4b0f0c5 100644 --- a/src/components/KyberAITokenBanner/index.tsx +++ b/src/components/KyberAITokenBanner/index.tsx @@ -65,13 +65,14 @@ const KyberAITokenBanner = ({ return undefined } - const token = tokenInputOverview?.kyberScore?.label - ? tokenInputOverview - : tokenOutputOverview?.kyberScore?.label - ? tokenOutputOverview - : tokenNativeOverview?.kyberScore?.label - ? tokenNativeOverview - : undefined + const token = + tokenInputOverview?.kyberScore?.label && tokenInputOverview?.symbol !== 'KNC' + ? tokenInputOverview + : tokenOutputOverview?.kyberScore?.label && tokenOutputOverview?.symbol !== 'KNC' + ? tokenOutputOverview + : tokenNativeOverview?.kyberScore?.label + ? tokenNativeOverview + : undefined if (!token) { return undefined } diff --git a/src/constants/index.ts b/src/constants/index.ts index 14f02ca68d..8278455248 100644 --- a/src/constants/index.ts +++ b/src/constants/index.ts @@ -230,7 +230,7 @@ export const TERM_FILES_PATH = { KYBERSWAP_TERMS: '/files/Kyber - Terms of Service - 14 June 2023.pdf', PRIVACY_POLICY: '/files/privacy.pdf', // Timestamp of changed date, update this to latest timestamp whenever change any above files. This also used to check on client side for updated to force user to disconnect and re-accept terms. - VERSION: 1687160930660, + VERSION: 1686700800000, } export enum FARM_TAB {