Skip to content

Commit

Permalink
fix: removed extra check
Browse files Browse the repository at this point in the history
  • Loading branch information
rupato-deriv committed Feb 18, 2025
1 parent 7f38497 commit c11daa9
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/components/layout/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,7 @@ const Layout = () => {
Object.values(clientAccounts).some(account => !(account as { token?: string }).token);

useEffect(() => {
if (
isLoggedInCookie &&
!isClientAccountsPopulated &&
isOAuth2Enabled &&
!isEndpointPage &&
!isCallbackPage &&
clientAccountsMissingToken
) {
if (isLoggedInCookie && isOAuth2Enabled && !isEndpointPage && !isCallbackPage && clientAccountsMissingToken) {
requestOidcAuthentication({
redirectCallbackUri: `${window.location.origin}/callback`,
});
Expand Down

0 comments on commit c11daa9

Please sign in to comment.