This commit is contained in:
Kenneth Jannette
2024-03-26 01:28:13 -05:00
parent 18fe59c195
commit 1395dc6a8f

View File

@@ -137,7 +137,7 @@ const HomePage = () => {
obj[key] = "---"; obj[key] = "---";
} }
}); });
console.log("new object", obj);
return obj; return obj;
} }
@@ -154,13 +154,12 @@ const HomePage = () => {
} }
async function getFocusData(code) { async function getFocusData(code) {
console.log("code in getFocusData", code);
try { try {
const response = await fetch(`${apiUrl}/v1/get-focused-data/${code}`, { const response = await fetch(`${apiUrl}/v1/get-focused-data/${code}`, {
method: "GET", method: "GET",
}); });
const res = await response.json(); const res = await response.json();
console.log("res in getFocusData", res);
return res; return res;
} catch (err) { } catch (err) {
console.log("Error in get rqst:", err); console.log("Error in get rqst:", err);
@@ -215,7 +214,7 @@ const HomePage = () => {
const user = userCredential.user; const user = userCredential.user;
dataValues = { ...dataValues }; dataValues = { ...dataValues };
const isPromotionalMebership = true; const isPromotionalMebership = true;
console.log("userCredential", userCredential);
const res = await saveUserData( const res = await saveUserData(
user.uid, user.uid,
dataValues, dataValues,
@@ -228,7 +227,7 @@ const HomePage = () => {
subscriptionId, subscriptionId,
isPromotionalMebership isPromotionalMebership
); );
console.log("res from saveUserData in handlePromoSignup", res);
setIsBusy(false); setIsBusy(false);
navigate("/dashboard"); navigate("/dashboard");
} catch (error) { } catch (error) {
@@ -239,7 +238,6 @@ const HomePage = () => {
} }
const handleTryItButton = (e) => { const handleTryItButton = (e) => {
console.log("hndleTryItButton e", e);
clickedTryItButton(); clickedTryItButton();
setShowPromoModal(true); setShowPromoModal(true);
}; };