From 616caf1943a456f0d71f1bf7278cb329a1e58dd9 Mon Sep 17 00:00:00 2001 From: sophian Date: Tue, 15 Oct 2024 13:16:41 -0400 Subject: [PATCH] Fix link to internal onboarding if no external URL is provided --- centrifuge-app/src/pages/Pool/Overview/index.tsx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/centrifuge-app/src/pages/Pool/Overview/index.tsx b/centrifuge-app/src/pages/Pool/Overview/index.tsx index 074ecee36e..49b124d109 100644 --- a/centrifuge-app/src/pages/Pool/Overview/index.tsx +++ b/centrifuge-app/src/pages/Pool/Overview/index.tsx @@ -3,7 +3,7 @@ import { useWallet } from '@centrifuge/centrifuge-react' import { Box, Button, Card, Grid, TextWithPlaceholder } from '@centrifuge/fabric' import Decimal from 'decimal.js-light' import * as React from 'react' -import { useParams } from 'react-router' +import { useNavigate, useParams } from 'react-router' import styled, { useTheme } from 'styled-components' import { InvestRedeemContext, InvestRedeemProvider } from '../../../../src/components/InvestRedeem/InvestRedeemProvider' import { InvestRedeemProps } from '../../../components/InvestRedeem/InvestRedeem' @@ -155,6 +155,7 @@ export function InvestButton(props: InvestRedeemProps) { const [open, setOpen] = React.useState(false) const connectAndOpen = useConnectBeforeAction(() => setOpen(true)) const { connectedType, showNetworks } = useWallet() + const navigate = useNavigate() const getButtonText = (state: any) => { if (!state.isAllowedToInvest && connectedType !== null) { @@ -181,7 +182,9 @@ export function InvestButton(props: InvestRedeemProps) {