Skip to content

Commit

Permalink
fix: still faulty account-redirect
Browse files Browse the repository at this point in the history
  • Loading branch information
rejetto committed May 12, 2024
1 parent 8fa9fb8 commit 3cc5cd2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/login.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ export async function loginDialog(closable=false) {
close(true)
if (res?.redirect)
setTimeout(() => // workaround: the history.back() issued by closing the dialog is messing with our navigation
getHFS().navigate(res.redirect) )
getHFS().navigate(res.redirect), 10) // from my tests 1 was enough, 0 was not (not always). Would be nice to find a cleaner way
} catch (err: any) {
await alertDialog(err)
usrRef.current?.focus()
Expand Down

0 comments on commit 3cc5cd2

Please sign in to comment.