Skip to content

Commit bbfa2a4

Browse files
committed
Wait longer for user to appear
1 parent 2f2db4d commit bbfa2a4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

web/lib/api.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ export async function api<P extends APIPath>(
1313
while (!auth.currentUser) {
1414
i++
1515
await sleep(i * 10)
16-
if (i > 10) {
17-
console.error('User did not load after 10 iterations')
16+
if (i > 300) {
17+
console.error('User did not load after 300 iterations')
1818
break
1919
}
2020
}

0 commit comments

Comments
 (0)