fix(hub): define mo in buildPositionMarketContext
Fixes monitor grid crash ReferenceError mo is not defined when opening market from position card. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -1367,6 +1367,7 @@
|
||||
}
|
||||
|
||||
function buildPositionMarketContext(pos, monitorOrder, trendPlan, exchangeId) {
|
||||
const mo = monitorOrder || {};
|
||||
const tpsl = resolvePositionTpsl(pos, monitorOrder, trendPlan);
|
||||
const cond = condOrdersFromPosition(pos);
|
||||
const reg = Array.isArray(pos.regular_orders) ? pos.regular_orders : [];
|
||||
|
||||
Reference in New Issue
Block a user