fix: Micro-fixes: dead comment, timer null, AbortController, address guard, catch reset (#261)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
openhands 2026-02-25 07:24:48 +00:00
parent 95955f23a3
commit d1d943e5fd
3 changed files with 7 additions and 0 deletions

View file

@ -189,6 +189,7 @@ export async function loadActivePositions(chainId: number, endpointOverride?: st
// since GraphQL returns them as numeric strings
export async function loadMyClosedPositions(chainId: number, endpointOverride: string | undefined, account: GetAccountReturnType) {
if (!account.address) return [];
const targetEndpoint = resolveGraphqlEndpoint(chainId, endpointOverride);
logger.info(`loadMyClosedPositions for chainId: ${chainId}`);
const res = await axios.post(