From 62e3546fb64bdc291a39957f7328149d3885d6b1 Mon Sep 17 00:00:00 2001 From: aeddaqqa Date: Tue, 14 Nov 2023 15:53:59 +0100 Subject: [PATCH] fix catch fetching multisig aliases error --- src/api/index.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/api/index.ts b/src/api/index.ts index 5bc8e300..f54787d2 100644 --- a/src/api/index.ts +++ b/src/api/index.ts @@ -9,6 +9,10 @@ export const getChains = createAsyncThunk('appConfig/chains', async () => { }) export async function getMultisigAliases(ownersAddresses: string[]): Promise { - let res = await axios.get(`${getBaseUrl()}/v2/multisigalias/${ownersAddresses.join(',')}`) - return res.data.alias + try { + let res = await axios.get(`${getBaseUrl()}/v2/multisigalias/${ownersAddresses.join(',')}`) + return res.data.alias + } catch (e) { + return [] + } }