Skip to content

Commit

Permalink
fix error
Browse files Browse the repository at this point in the history
  • Loading branch information
shihjay2 committed Oct 5, 2024
1 parent c6253ba commit 21b7381
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/magicLink/login.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ export default function Login({ challenge, clinical=false, authonly=false, clien
const [email, setEmailValue] = useState("");
const [clientExist, setClientExist] = useState(false);
const [isContinue, setContinue] = useState(false);
const isVisible = usePageVisibility();

useEffect(() => {
const checkAvailability = async () => {
Expand Down Expand Up @@ -124,7 +125,6 @@ export default function Login({ challenge, clinical=false, authonly=false, clien
}
console.log('registering passkey now...');
let window_check = false;
const isVisible = usePageVisibility();
while (!window_check) {
await sleep(2);
if (isVisible) {
Expand Down

0 comments on commit 21b7381

Please sign in to comment.