From 6404ee6e0b6af1ed3773a6e965c98b06af28cc2b Mon Sep 17 00:00:00 2001 From: Zach Pomerantz Date: Fri, 21 Jan 2022 13:14:50 -0800 Subject: [PATCH] fix: default tokens on chainId change only (#3169) --- src/lib/components/Swap/index.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib/components/Swap/index.tsx b/src/lib/components/Swap/index.tsx index 2bba6b925d..c691c276b3 100644 --- a/src/lib/components/Swap/index.tsx +++ b/src/lib/components/Swap/index.tsx @@ -65,7 +65,8 @@ export default function Swap({ defaults }: SwapProps) { updateSwapOutputCurrency() updateSwapInputAmount('') } - }, [chainId, updateSwapInputAmount, updateSwapInputCurrency, updateSwapOutputCurrency]) + // eslint-disable-next-line react-hooks/exhaustive-deps + }, [chainId]) return ( <>