fix: default tokens on chainId change only (#3169)
This commit is contained in:
parent
8ac3ed1128
commit
6404ee6e0b
@ -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 (
|
||||
<>
|
||||
|
Loading…
Reference in New Issue
Block a user