From 49cd3248e571199a8fde5caa44aec5513a32f819 Mon Sep 17 00:00:00 2001 From: Nam Nguyen Date: Fri, 21 Jul 2023 18:16:27 +0700 Subject: [PATCH] refactor: clean code --- src/constants/connectors/utils.ts | 2 +- src/pages/KyberDAO/KNCUtility/Table.tsx | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/constants/connectors/utils.ts b/src/constants/connectors/utils.ts index a5baf69dd5..4baa970750 100644 --- a/src/constants/connectors/utils.ts +++ b/src/constants/connectors/utils.ts @@ -21,7 +21,7 @@ export const getIsMetaMaskWallet = () => export const getIsCoinbaseWallet = () => Boolean( (window.ethereum?.isCoinbaseWallet || window.ethereum?.providers?.some(p => p?.isCoinbaseWallet)) && - !window.ethereum.isKrystalWallet, + !window.ethereum?.isKrystalWallet, ) export const getIsBraveWallet = () => Boolean(checkForBraveBrowser() && window.ethereum?.isBraveWallet) diff --git a/src/pages/KyberDAO/KNCUtility/Table.tsx b/src/pages/KyberDAO/KNCUtility/Table.tsx index c07dfbedca..2ddde54e3e 100644 --- a/src/pages/KyberDAO/KNCUtility/Table.tsx +++ b/src/pages/KyberDAO/KNCUtility/Table.tsx @@ -42,7 +42,6 @@ export const Row = styled.div<{ $background?: string }>` export const TableHeader = styled(Row)` border-top: none; - background: linear-gradient(0deg, #134134 0%, #0f221e 100%); background: linear-gradient( 0deg, ${({ theme }) => transparentize(0.5, theme.primary)} 0%,