Skip to content

Commit 04bdc62

Browse files
authored
Revert "chore: remove console log and fix pathname"
1 parent 9c9acdb commit 04bdc62

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)