mirror of
https://github.com/CompassConnections/Compass.git
synced 2026-04-03 22:44:35 -04:00
Wait longer for user to appear
This commit is contained in:
@@ -13,8 +13,8 @@ export async function api<P extends APIPath>(
|
||||
while (!auth.currentUser) {
|
||||
i++
|
||||
await sleep(i * 10)
|
||||
if (i > 10) {
|
||||
console.error('User did not load after 10 iterations')
|
||||
if (i > 300) {
|
||||
console.error('User did not load after 300 iterations')
|
||||
break
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user