diff --git a/src/Components/Dashboard/Dashboard.js b/src/Components/Dashboard/Dashboard.js index 18b27e1..ccc43de 100644 --- a/src/Components/Dashboard/Dashboard.js +++ b/src/Components/Dashboard/Dashboard.js @@ -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({