Skip to content

Commit

Permalink
fix loading
Browse files Browse the repository at this point in the history
  • Loading branch information
onnovisser committed Sep 18, 2023
1 parent 59cc554 commit 33ed728
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions centrifuge-app/src/components/InvestRedeem/InvestRedeem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,11 @@ const listFormatter = new Intl.ListFormat('en')

export function InvestRedeem({ poolId, ...rest }: Props) {
const getNetworkName = useGetNetworkName()
const { data: domains } = useActiveDomains(poolId)
const { setScopedNetworks } = useWallet()
const { setScopedNetworks, connectedType, isEvmOnSubstrate } = useWallet()

const isLiquidityPools = !poolId.startsWith('0x') && connectedType === 'evm' && !isEvmOnSubstrate

const { data: domains } = useActiveDomains(poolId, isLiquidityPools)

const networks: Network[] = poolId.startsWith('0x') ? [ethConfig.network === 'goerli' ? 5 : 1] : ['centrifuge']
if (domains) {
Expand Down

0 comments on commit 33ed728

Please sign in to comment.