Fix Plan page black screen from undefined movePct.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -78,6 +78,7 @@ export default function PlanPage() {
|
|||||||
const exitMode = plan?.exit_mode ?? "fixed_usdt";
|
const exitMode = plan?.exit_mode ?? "fixed_usdt";
|
||||||
const exitTarget = plan?.exit_target_usdt ?? plan?.net_profit_target ?? 15;
|
const exitTarget = plan?.exit_target_usdt ?? plan?.net_profit_target ?? 15;
|
||||||
const netPnl = pos?.net_pnl ?? 0;
|
const netPnl = pos?.net_pnl ?? 0;
|
||||||
|
const movePct = pos?.move_pct ?? 0;
|
||||||
const exitRuleLabel =
|
const exitRuleLabel =
|
||||||
exitMode === "premium_multiple"
|
exitMode === "premium_multiple"
|
||||||
? `权利金×${fmt(plan?.premium_exit_multiple ?? 1, 2)}`
|
? `权利金×${fmt(plan?.premium_exit_multiple ?? 1, 2)}`
|
||||||
|
|||||||
Reference in New Issue
Block a user