Skip to content

Commit

Permalink
Merge pull request #180 from thisyahlen-deriv/thisyahlen/remove-conso…
Browse files Browse the repository at this point in the history
…le-log-and-amend-pathname

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

handleLogin();
}

Expand Down

0 comments on commit 9c9acdb

Please sign in to comment.