From 67b633ae9bc1f32f3d242087aa66809b2f03c7b8 Mon Sep 17 00:00:00 2001 From: Thigazhezhilan J Date: Sat, 28 Mar 2026 12:21:41 +0530 Subject: [PATCH] Refactor strategy execution logic to improve clarity on arming conditions --- src/components/landing/PortfolioSection.tsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/components/landing/PortfolioSection.tsx b/src/components/landing/PortfolioSection.tsx index ff5acde9..6f4374be 100644 --- a/src/components/landing/PortfolioSection.tsx +++ b/src/components/landing/PortfolioSection.tsx @@ -629,8 +629,7 @@ export default function PortfolioSection() { : "Strategy stopped"; const marketState = marketStatus?.status ?? "UNKNOWN"; - const executionAllowed = - marketState === "OPEN" && (liveness === "ACTIVE" || liveness === "STOPPED"); + const canArmStrategy = liveness === "ACTIVE" || liveness === "STOPPED"; const nextEligibleTs = engineStatus?.next_eligible_ts ? new Date(engineStatus.next_eligible_ts) @@ -1143,7 +1142,7 @@ export default function PortfolioSection() { {isStarting ? "Starting..." : "Start Strategy"}