Skip to content

Commit

Permalink
fix catch fetching multisig aliases error
Browse files Browse the repository at this point in the history
  • Loading branch information
aeddaqqa committed Nov 14, 2023
1 parent cc2d736 commit 62e3546
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/api/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ export const getChains = createAsyncThunk('appConfig/chains', async () => {
})

export async function getMultisigAliases(ownersAddresses: string[]): Promise<string[]> {
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 []
}
}

0 comments on commit 62e3546

Please sign in to comment.