@samitouri / QOSami-HFS / commits / 3cc5cd25

fix: still faulty account-redirect

Massimo Melina committed May 12, 2024 at 19:08 UTC 3cc5cd25c8ad72ce967f4db5a35a43fe240476f1
1 file changed +1 -1
frontend/src/login.ts
+1 -1
@@ -115,7 +115,7 @@ export async function loginDialog(closable=false) {
115 close(true)
116 if (res?.redirect)
117 setTimeout(() => // workaround: the history.back() issued by closing the dialog is messing with our navigation
118 - getHFS().navigate(res.redirect) )
118 + getHFS().navigate(res.redirect), 10) // from my tests 1 was enough, 0 was not (not always). Would be nice to find a cleaner way
119 } catch (err: any) {
120 await alertDialog(err)
121 usrRef.current?.focus()