From f996378517553830420d8169e20b40ec99f04f61 Mon Sep 17 00:00:00 2001 From: Nicolas Henin Date: Wed, 1 Nov 2023 16:52:48 +0100 Subject: [PATCH] fixed login redirection issue (#22) --- src/components/Landing.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/Landing.tsx b/src/components/Landing.tsx index 2321aa6..57ce460 100644 --- a/src/components/Landing.tsx +++ b/src/components/Landing.tsx @@ -11,7 +11,7 @@ const Landing: React.FC = ({ setAndShowToast }) => { const navigate = useNavigate(); const selectedAWalletExtension = localStorage.getItem('walletProvider'); const installedWalletExtensions = getInstalledWalletExtensions() - if (selectedAWalletExtension) { navigate('/created-plans') } + if (selectedAWalletExtension) { navigate('/about') } async function connectWallet(walletName: string) { localStorage.setItem('walletProvider', walletName); @@ -20,7 +20,7 @@ const Landing: React.FC = ({ setAndShowToast }) => { You can see Token Plans in which your {walletName} wallet is a participant Now!, false ); - navigate('/created-plans'); + navigate('/about'); } function capitalizeFirstLetter(str: string): string {