From a754421eae34f6dfe3438d6c4e151f7fa9ad67b2 Mon Sep 17 00:00:00 2001 From: Onno Visser <23527729+onnovisser@users.noreply.github.com> Date: Mon, 18 Sep 2023 19:20:27 +0200 Subject: [PATCH] small fixes --- centrifuge-app/src/components/Swaps/Orders.tsx | 2 +- centrifuge-js/src/index.ts | 1 + centrifuge-react/src/components/WalletProvider/WalletDialog.tsx | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/centrifuge-app/src/components/Swaps/Orders.tsx b/centrifuge-app/src/components/Swaps/Orders.tsx index b7bf5d401b..eb667a2a9a 100644 --- a/centrifuge-app/src/components/Swaps/Orders.tsx +++ b/centrifuge-app/src/components/Swaps/Orders.tsx @@ -5,11 +5,11 @@ import { CurrencyMetadata, findBalance, findCurrency, + getCurrencyChainId, isSameCurrency, parseCurrencyKey, Rate, } from '@centrifuge/centrifuge-js' -import { getCurrencyChainId } from '@centrifuge/centrifuge-js/dist/modules/liquidityPools' import { truncateAddress, useBalances, diff --git a/centrifuge-js/src/index.ts b/centrifuge-js/src/index.ts index 594b1daca8..c73744beba 100644 --- a/centrifuge-js/src/index.ts +++ b/centrifuge-js/src/index.ts @@ -1,5 +1,6 @@ import { Centrifuge } from './Centrifuge' export type { UserProvidedConfig } from './CentrifugeBase' +export * from './modules/liquidityPools' export * from './modules/multisig' export type { Collection, NFT } from './modules/nfts' export * from './modules/pools' diff --git a/centrifuge-react/src/components/WalletProvider/WalletDialog.tsx b/centrifuge-react/src/components/WalletProvider/WalletDialog.tsx index d6075a3603..fcbdd9c37a 100644 --- a/centrifuge-react/src/components/WalletProvider/WalletDialog.tsx +++ b/centrifuge-react/src/components/WalletProvider/WalletDialog.tsx @@ -88,7 +88,7 @@ export function WalletDialog({ async function connect(wallet: Wallet | EvmConnectorMeta) { try { const accounts = await doConnect(wallet, selectedNetwork!) - if (accounts?.length! > 1) { + if (accounts?.length! > 1 && 'extensionName' in wallet) { dispatch({ type: 'showWalletDialogAccounts' }) } else { close()