This commit is contained in:
Kenneth Jannette
2024-03-26 01:04:06 -05:00
parent b2d06b906d
commit 5f5329361a

View File

@@ -168,16 +168,23 @@ const HomePage = () => {
}
async function handleProcessPromoSubscription(code) {
console.log("code in handleProcessPromoSubscription", code);
setIsBusy(true);
setShowPromoModal(false);
if (!code) {
return;
}
const userData = await getFocusData(code);
console.log("userData in returned from getFocusData", userData);
const email = userData[0].email;
const password = userData[0].mspall;
let email;
let password;
if (!userData[0] || userData.length < 1) {
return;
} else {
email = userData[0].email;
password = userData[0].mspall;
}
if (email && password) {
handlePromoSignup(userData, email, password);
} else {