From 79d5211db40ebe348211a617fe09418b805db715 Mon Sep 17 00:00:00 2001 From: Felipe Brahm Date: Thu, 17 Nov 2022 19:25:34 -0800 Subject: [PATCH] refactor: remove unnecessary casting (#5270) --- src/components/Settings/index.tsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/components/Settings/index.tsx b/src/components/Settings/index.tsx index b38f8e06fb..2a6b58c689 100644 --- a/src/components/Settings/index.tsx +++ b/src/components/Settings/index.tsx @@ -123,7 +123,7 @@ const ModalContentWrapper = styled.div` export default function SettingsTab({ placeholderSlippage }: { placeholderSlippage: Percent }) { const { chainId } = useWeb3React() - const node = useRef() + const node = useRef(null) const open = useModalIsOpen(ApplicationModal.SETTINGS) const toggle = useToggleSettingsMenu() @@ -139,8 +139,7 @@ export default function SettingsTab({ placeholderSlippage }: { placeholderSlippa useOnClickOutside(node, open ? toggle : undefined) return ( - // https://github.com/DefinitelyTyped/DefinitelyTyped/issues/30451 - + setShowConfirmation(false)} maxHeight={100}>