File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,9 @@ const headerElIdTmpl = 'uninav-headerNav';
14
14
15
15
const TopcoderHeader = ( { auth } ) => {
16
16
const uniNavInitialized = useRef ( false ) ;
17
+ const user = _ . get ( auth , 'profile' ) || { } ;
18
+ const authToken = _ . get ( auth , 'tokenV3' ) ;
19
+ const isAuthenticated = ! ! authToken ;
17
20
const authURLs = config . HEADER_AUTH_URLS ;
18
21
const headerRef = useRef ( ) ;
19
22
const headerElId = useRef ( `${ headerElIdTmpl } -${ counter } ` ) ;
@@ -58,9 +61,6 @@ const TopcoderHeader = ({ auth }) => {
58
61
headerRef . current . id = headerElId . current ;
59
62
60
63
uniNavInitialized . current = true ;
61
- const user = _ . get ( auth , 'profile' ) || { } ;
62
- const authToken = _ . get ( auth , 'tokenV3' ) ;
63
- const isAuthenticated = ! ! authToken ;
64
64
65
65
counter += 1 ;
66
66
You can’t perform that action at this time.
0 commit comments