This commit is contained in:
KS Jannette
2026-05-11 22:34:23 -04:00
parent d89970fcac
commit 71443f0abc
2 changed files with 3 additions and 4 deletions

View File

@@ -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 = {

View File

@@ -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 {