Commit 6404ee6e authored by Zach Pomerantz's avatar Zach Pomerantz Committed by GitHub

fix: default tokens on chainId change only (#3169)

parent 8ac3ed11
......@@ -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 (
<>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment