Skip to content

Commit

Permalink
Merge pull request #181 from deriv-com/revert-180-thisyahlen/remove-c…
Browse files Browse the repository at this point in the history
…onsole-log-and-amend-pathname

Revert "chore: remove console log and fix pathname"
  • Loading branch information
shafin-deriv authored Dec 10, 2024
2 parents 9c9acdb + 04bdc62 commit 4963194
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/UserNavbarItem/item.desktop.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,10 @@ const UserNavbarDesktopItem = ({ authUrl, is_logged_in }: IUserNavbarItemProps)
loggedState === 'true' &&
isOAuth2Enabled &&
!isLoginAccountsPopulated &&
!window.location.pathname.includes('callback')
window.location.pathname !== '/callback'
) {
console.log('isLoginAccountsPopulated', !isLoginAccountsPopulated);

handleLogin();
}

Expand Down

0 comments on commit 4963194

Please sign in to comment.