diff --git a/src/data/V1.ts b/src/data/V1.ts index 67f7b78ccf..25120543ab 100644 --- a/src/data/V1.ts +++ b/src/data/V1.ts @@ -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 (