more
This commit is contained in:
@@ -39,6 +39,7 @@ const Dashboard = () => {
|
||||
const { appState } = useContext(AppContext);
|
||||
const { group } = appState;
|
||||
const appUserId = group ? group.appUserId : null;
|
||||
const _fbAuthUid = group ? group.fbAuthUid : null;
|
||||
const isDashboard = true;
|
||||
console.log("group on dashbaord page", group);
|
||||
console.log("auth in dashoabrd page", auth);
|
||||
@@ -117,7 +118,9 @@ const Dashboard = () => {
|
||||
e.preventDefault();
|
||||
console.log("handle lcick");
|
||||
const updateRef = collection(db, "users");
|
||||
await setDoc(doc(updateRef, appUserId), { isPromoFirstLogin: false });
|
||||
await setDoc(doc(updateRef, _fbAuthUid), {
|
||||
isPromotionalFirstLogin: false,
|
||||
});
|
||||
navigate({
|
||||
pathname: "/passwordreset/",
|
||||
search: `?${createSearchParams({
|
||||
|
||||
Reference in New Issue
Block a user