Skip to content

Commit

Permalink
Don't fail if addChain fails.
Browse files Browse the repository at this point in the history
  • Loading branch information
NoahSaso committed Dec 14, 2023
1 parent 0ec02b3 commit cdcd1ae
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions packages/stateful/components/wallet/WalletUi.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -117,12 +117,13 @@ export const WalletUi = (props: WalletModalProps) => {
)
)

await Promise.all(
configuredChains.map((chainRecord) =>
walletRepo
.getWallet(wallet.walletName)
?.mainWallet.client.addChain?.(chainRecord)
.catch(console.error)
await Promise.allSettled(
configuredChains.map(
async (chainRecord) =>
await walletRepo
.getWallet(wallet.walletName)
?.mainWallet.client.addChain?.(chainRecord)
.catch(console.error)
)
)

Expand Down

0 comments on commit cdcd1ae

Please sign in to comment.