diff --git a/web/lib/api.ts b/web/lib/api.ts index 0dd269d6..a624da9e 100644 --- a/web/lib/api.ts +++ b/web/lib/api.ts @@ -13,8 +13,8 @@ export async function api
( 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 } }