Skip to content

Commit

Permalink
tsukota: Fix getFirebaseAuthCurrentUser
Browse files Browse the repository at this point in the history
  • Loading branch information
bouzuya committed Jun 24, 2023
1 parent 68945a3 commit bc5a4ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/tsukota/hooks/use-credential.tsx
Expand Up @@ -11,7 +11,7 @@ import { storage } from "../lib/storage";
import { generate as generateUuidV4 } from "../lib/uuid";

const getFirebaseAuthCurrentUser = (): Promise<User | null> => {
return Promise.any([
return Promise.race([
new Promise<never>((_, reject) => setTimeout(reject, 500)),
new Promise<User | null>((resolve, reject) => {
try {
Expand Down

0 comments on commit bc5a4ce

Please sign in to comment.