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) { async function handleProcessPromoSubscription(code) {
console.log("code in handleProcessPromoSubscription", code);
setIsBusy(true); setIsBusy(true);
setShowPromoModal(false); setShowPromoModal(false);
if (!code) { if (!code) {
return; return;
} }
const userData = await getFocusData(code); const userData = await getFocusData(code);
console.log("userData in returned from getFocusData", userData); let email;
const email = userData[0].email; let password;
const password = userData[0].mspall;
if (userData === undefined) {
return;
} else {
email = userData[0].email;
password = userData[0].mspall;
}
if (email && password) { if (email && password) {
handlePromoSignup(userData, email, password); handlePromoSignup(userData, email, password);
} else { } else {