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

This commit is contained in:
Zach Pomerantz 2022-01-21 13:14:50 -08:00 committed by GitHub
parent 8ac3ed1128
commit 6404ee6e0b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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 (
<>