Skip to content

Commit 54f6985

Browse files
committed
Lint fixes
1 parent 372ed3c commit 54f6985

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
@@ -30,15 +30,15 @@ const TopcoderHeader = ({ auth }) => {
3030

3131
// if there's a stored nav type in session storage, retrieve it and overwrite type
3232
const sessionNavType = sessionStorage.getItem('uni-nav[navType]');
33-
const url = window.location.pathname;
33+
const url = new URL(window.location.href);
3434

35-
//Only use the set sessionStorage value for navType on the /thrive paths, for now. Probably will change in the future...
35+
// Only use the set sessionStorage value for navType on the /thrive paths, for now.
36+
// Probably will change in the future...
3637
if (url.includes('/thrive') && sessionNavType && (sessionNavType === 'tool' || sessionNavType === 'marketing')) {
3738
type = sessionNavType;
3839
}
3940

4041
// If url contains navTool url parameter. Overwrite settings with parameter.
41-
const url = new URL(window.location.href);
4242
const urlParams = new URLSearchParams(url.search);
4343
if (urlParams.get('navTool')) {
4444
type = urlParams.get('navTool');

0 commit comments

Comments
 (0)