Merge pull request #185 from kjannette/hotfig

Hotfig
This commit is contained in:
S Jannette
2024-03-26 01:16:54 -05:00
committed by GitHub

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 === undefined) {
return;
} else {
email = userData[0].email;
password = userData[0].mspall;
}
if (email && password) {
handlePromoSignup(userData, email, password);
} else {