From 8a64be57dea5e0f40f083c30e2c130b4f333f4b6 Mon Sep 17 00:00:00 2001 From: Sebastian Scatularo Date: Fri, 22 Nov 2024 18:11:58 -0300 Subject: [PATCH] return chains on abort --- apps/connect-v1/src/utils/getSortedChains.ts | 3 ++- apps/connect/src/utils/getSortedChains.ts | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/apps/connect-v1/src/utils/getSortedChains.ts b/apps/connect-v1/src/utils/getSortedChains.ts index 8e731d6fa..d196f80ee 100644 --- a/apps/connect-v1/src/utils/getSortedChains.ts +++ b/apps/connect-v1/src/utils/getSortedChains.ts @@ -37,6 +37,7 @@ export const getSortedChains = async ( return [...chains].sort((a, b) => getChainScore(b) - getChainScore(a)); } catch (error) { - if ((error as Error).name !== "AbortError") return chains; + console.debug(error); + return chains; } }; diff --git a/apps/connect/src/utils/getSortedChains.ts b/apps/connect/src/utils/getSortedChains.ts index cae032f6a..d049a5bba 100644 --- a/apps/connect/src/utils/getSortedChains.ts +++ b/apps/connect/src/utils/getSortedChains.ts @@ -37,6 +37,7 @@ export const getSortedChains = async ( return [...chains].sort((a, b) => getChainScore(b) - getChainScore(a)); } catch (error) { - if ((error as Error).name !== "AbortError") return chains; + console.debug(error); + return chains; } };