improvement(swap): show better trade link if trade doesn't exist on one version
This commit is contained in:
parent
85217452db
commit
1911f72536
@ -167,6 +167,8 @@ export function isTradeBetter(
|
||||
tradeB: Trade | undefined,
|
||||
minimumDelta: Percent = ZERO_PERCENT
|
||||
): boolean | undefined {
|
||||
if (tradeA && !tradeB) return false
|
||||
if (tradeB && !tradeA) return true
|
||||
if (!tradeA || !tradeB) return undefined
|
||||
|
||||
if (
|
||||
|
Loading…
Reference in New Issue
Block a user