fix: disallow duplicate currencies in widget (#4919)
fix: currency equality check
This commit is contained in:
parent
6acc9300c0
commit
0faaa3f0c4
@ -65,7 +65,7 @@ export function useSyncWidgetInputs(defaultToken?: Currency) {
|
||||
setType(TradeType.EXACT_INPUT)
|
||||
setTokens(() => {
|
||||
return {
|
||||
[otherField]: token === otherToken ? selectingToken : otherToken,
|
||||
[otherField]: otherToken?.equals(token) ? selectingToken : otherToken,
|
||||
[selectingField]: token,
|
||||
}
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user