fix(frontend): agent loading condition update logic (#11673)

This commit is contained in:
sp.wack
2025-11-07 22:04:27 +04:00
committed by GitHub
parent a660321d55
commit 0c927b19d2

View File

@@ -70,8 +70,7 @@ export function AgentStatus({
// Update global state when agent loading condition changes
useEffect(() => {
if (shouldShownAgentLoading)
setShouldShownAgentLoading(shouldShownAgentLoading);
setShouldShownAgentLoading(!!shouldShownAgentLoading);
}, [shouldShownAgentLoading, setShouldShownAgentLoading]);
return (