This commit is contained in:
Kenneth Jannette
2024-03-23 06:27:24 -05:00
parent 4018d393db
commit dacdb85848

View File

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