Skip to content

Commit 9c9acdb

Browse files
authored
Merge pull request #180 from thisyahlen-deriv/thisyahlen/remove-console-log-and-amend-pathname
chore: remove console log and fix pathname
2 parents db297a7 + 90a3ac4 commit 9c9acdb

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/components/UserNavbarItem/item.desktop.tsx

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

0 commit comments

Comments
 (0)