Skip to content

Commit 910aeb8

Browse files
committed
Failing test fix
1 parent d2b6149 commit 910aeb8

File tree

1 file changed

+4
-1
lines changed
  • src/shared/containers/TopcoderHeader

1 file changed

+4
-1
lines changed

src/shared/containers/TopcoderHeader/index.jsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,15 @@ import React, { useEffect, useMemo, useRef } from 'react';
33
import { connect } from 'react-redux';
44
import { config } from 'topcoder-react-utils';
55
import LoadingIndicator from 'components/LoadingIndicator';
6+
import _ from 'lodash';
67
import { getSubPageConfiguration } from '../../utils/url';
78
import { SSRPlaceholder } from '../../utils/SSR';
89
import './styles.scss';
910

1011
let counter = 0;
1112
const headerElIdTmpl = 'uninav-headerNav';
1213

13-
const TopcoderHeader = () => {
14+
const TopcoderHeader = ({ auth }) => {
1415
const uniNavInitialized = useRef(false);
1516
const authURLs = config.HEADER_AUTH_URLS;
1617
const headerRef = useRef();
@@ -51,6 +52,8 @@ const TopcoderHeader = () => {
5152
headerRef.current.id = headerElId.current;
5253

5354
uniNavInitialized.current = true;
55+
const user = _.get(auth, 'profile') || {};
56+
5457
counter += 1;
5558

5659
const regSource = window.location.pathname.split('/')[1];

0 commit comments

Comments
 (0)