hotfix
This commit is contained in:
@@ -79,7 +79,9 @@ export function AuthProvider({ children }) {
|
||||
if (auth.currentUser) {
|
||||
await auth.currentUser.reload();
|
||||
setCurrentUser({ ...auth.currentUser });
|
||||
return auth.currentUser;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
const value = {
|
||||
|
||||
@@ -82,10 +82,7 @@ export default function Subscribe() {
|
||||
setError("");
|
||||
setLoading(true);
|
||||
try {
|
||||
await reloadUser();
|
||||
const { currentUser: user } = await import("../../firebase/config").then(
|
||||
(m) => ({ currentUser: m.auth.currentUser })
|
||||
);
|
||||
const user = await reloadUser();
|
||||
if (user?.emailVerified) {
|
||||
setStep(3);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user