Skip to content

Commit 4963194

Browse files
authored
Merge pull request #181 from deriv-com/revert-180-thisyahlen/remove-console-log-and-amend-pathname
Revert "chore: remove console log and fix pathname"
2 parents 9c9acdb + 04bdc62 commit 4963194

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/components/UserNavbarItem/item.desktop.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,10 @@ const UserNavbarDesktopItem = ({ authUrl, is_logged_in }: IUserNavbarItemProps)
119119
loggedState === 'true' &&
120120
isOAuth2Enabled &&
121121
!isLoginAccountsPopulated &&
122-
!window.location.pathname.includes('callback')
122+
window.location.pathname !== '/callback'
123123
) {
124+
console.log('isLoginAccountsPopulated', !isLoginAccountsPopulated);
125+
124126
handleLogin();
125127
}
126128

0 commit comments

Comments
 (0)