more
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user