Skip to content

Commit

Permalink
fix(Header): testnet title not displayed
Browse files Browse the repository at this point in the history
  • Loading branch information
dan-ziv committed May 8, 2022
1 parent 3f05a71 commit 4169584
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/Containers/Header/Header.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import useBreakpoint from 'use-breakpoint';

import {TrackEvent} from '../../../analytics';
import {ReactComponent as StarkGateLogo} from '../../../assets/img/starkgate.svg';
import {Breakpoint} from '../../../enums';
import {Breakpoint, ChainType} from '../../../enums';
import {useColors, useConstants, useEnvs, useTracking, useHeaderTranslation} from '../../../hooks';
import {useLogin} from '../../../providers/AppProvider';
import {useMenu} from '../../../providers/MenuProvider';
Expand All @@ -17,7 +17,7 @@ import styles from './Header.module.scss';
export const Header = () => {
const {DISCORD_LINK_URL} = useConstants();
const [trackDiscordClick] = useTracking(TrackEvent.DISCORD_TAB_CLICK);
const {env} = useEnvs();
const {supportedChainId} = useEnvs();
const {tabDiscordTxt, tabFaqTxt, tabTermsTxt, chainTxt} = useHeaderTranslation();
const navigate = useNavigate();
const {pathname} = useLocation();
Expand Down Expand Up @@ -70,7 +70,7 @@ export const Header = () => {
<div className={utils.object.toClasses(styles.logo, 'row')} onClick={onLogoClick}>
<StarkGateLogo />
</div>
{env !== 'production' && (
{supportedChainId === ChainType.L1.GOERLI && (
<div className={utils.object.toClasses(styles.chain, 'row')}>{chainTxt}</div>
)}
</div>
Expand Down

0 comments on commit 4169584

Please sign in to comment.