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