Skip to content

Commit 327f5e3

Browse files
committed
Build / test fix
1 parent 94e7d74 commit 327f5e3

File tree

1 file changed

+3
-3
lines changed
  • src/shared/containers/TopcoderHeader

1 file changed

+3
-3
lines changed

src/shared/containers/TopcoderHeader/index.jsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ const headerElIdTmpl = 'uninav-headerNav';
1414

1515
const TopcoderHeader = ({ auth }) => {
1616
const uniNavInitialized = useRef(false);
17+
const user = _.get(auth, 'profile') || {};
18+
const authToken = _.get(auth, 'tokenV3');
19+
const isAuthenticated = !!authToken;
1720
const authURLs = config.HEADER_AUTH_URLS;
1821
const headerRef = useRef();
1922
const headerElId = useRef(`${headerElIdTmpl}-${counter}`);
@@ -58,9 +61,6 @@ const TopcoderHeader = ({ auth }) => {
5861
headerRef.current.id = headerElId.current;
5962

6063
uniNavInitialized.current = true;
61-
const user = _.get(auth, 'profile') || {};
62-
const authToken = _.get(auth, 'tokenV3');
63-
const isAuthenticated = !!authToken;
6464

6565
counter += 1;
6666

0 commit comments

Comments
 (0)