This commit is contained in:
Kenneth Jannette
2024-03-26 04:30:56 -05:00
parent 1395dc6a8f
commit 3a37ca5a6f

View File

@@ -22,7 +22,7 @@ const AppContext = createContext({
const AppProvider = ({ children }) => { const AppProvider = ({ children }) => {
const { currentUserEmail } = useContext(AuthContext); const { currentUserEmail } = useContext(AuthContext);
const [appState, appDispatch] = useReducer(useGroupReducer, initialState); const [appState, appDispatch] = useReducer(useGroupReducer, initialState);
console.log("currentUserEmail in AppProvider", currentUserEmail);
useEffect(() => { useEffect(() => {
if (typeof currentUserEmail === "undefined") { if (typeof currentUserEmail === "undefined") {
return; return;