Skip to content

Commit

Permalink
chore: change docs updated date, skip kyberai banner for KNC (#2009)
Browse files Browse the repository at this point in the history
  • Loading branch information
XiaoYhun authored Jun 22, 2023
1 parent 9492734 commit a7c0f14
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
15 changes: 8 additions & 7 deletions src/components/KyberAITokenBanner/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
2 changes: 1 addition & 1 deletion src/constants/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit a7c0f14

Please sign in to comment.