Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandria.gomez authored and alexandria.gomez committed Oct 10, 2023
1 parent 1ee9483 commit f0c2dd0
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ export default function SendToLaserficheLoginComponent(
document.body.style.display = 'none';
if (loginComponent.current.state !== LoginState.LoggedIn) {
if (!document.referrer.includes('accounts.')) {
loginComponent.current.initLoginFlowAsync();
await loginComponent.current.initLoginFlowAsync();
} else {
window.close();
}
Expand Down Expand Up @@ -223,8 +223,9 @@ export default function SendToLaserficheLoginComponent(
window.open(url, '_blank', 'popup');
}

let redirectURL =
const redirectURL =
window.location.origin + window.location.pathname + '?autologin';

return (
<React.StrictMode>
<div className={styles.signInHeader}>
Expand Down

0 comments on commit f0c2dd0

Please sign in to comment.