Skip to content

Commit

Permalink
fix links to the testnet and mainnet (#506)
Browse files Browse the repository at this point in the history
  • Loading branch information
JayJay1024 authored Aug 22, 2023
1 parent 4209a0e commit 69c3731
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/shared/components/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ export function Footer({ theme, className = '' }: FooterProps) {

useEffect(() => {
if (window.location.hostname === 'helixbridge.app') {
setMainnetOrTestnet({ label: 'Testnet', link: 'helix-apps-test.vercel.app' });
setMainnetOrTestnet({ label: 'Testnet', link: 'https://helix-apps-test.vercel.app' });
} else if (window.location.hostname === 'helix-apps-test.vercel.app') {
setMainnetOrTestnet({ label: 'Mainnet', link: 'helixbridge.app' });
setMainnetOrTestnet({ label: 'Mainnet', link: 'https://helixbridge.app' });
} else if (window.location.hostname === 'helix-stg.vercel.app') {
setMainnetOrTestnet({ label: 'Testnet', link: 'helix-stg-test.vercel.app' });
setMainnetOrTestnet({ label: 'Testnet', link: 'https://helix-stg-test.vercel.app' });
} else if (window.location.hostname === 'helix-stg-test.vercel.app') {
setMainnetOrTestnet({ label: 'Mainnet', link: 'helix-stg.vercel.app' });
setMainnetOrTestnet({ label: 'Mainnet', link: 'https://helix-stg.vercel.app' });
}
}, []);

Expand Down

0 comments on commit 69c3731

Please sign in to comment.