diff --git a/frontend/openchat-agent/src/services/dexes/index.ts b/frontend/openchat-agent/src/services/dexes/index.ts index aac846cb89..789e436abb 100644 --- a/frontend/openchat-agent/src/services/dexes/index.ts +++ b/frontend/openchat-agent/src/services/dexes/index.ts @@ -85,7 +85,9 @@ export class DexesAgent { }), ); } - return Promise.all(promises).then((r) => r.flat()); + return Promise.allSettled(promises).then((result) => + result.flatMap((r) => (r.status === "fulfilled" ? r.value : [])), + ); } private quoteSingle(