Skip to content

Commit

Permalink
fixed login redirection issue (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
nhenin committed Nov 1, 2023
1 parent 504c2f0 commit f996378
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Landing.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const Landing: React.FC<LandingProps> = ({ 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);
Expand All @@ -20,7 +20,7 @@ const Landing: React.FC<LandingProps> = ({ setAndShowToast }) => {
<span className='text-color-white'>You can see Token Plans in which your {walletName} wallet is a participant Now!</span>,
false
);
navigate('/created-plans');
navigate('/about');
}

function capitalizeFirstLetter(str: string): string {
Expand Down

0 comments on commit f996378

Please sign in to comment.