more
This commit is contained in:
@@ -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[0] || userData.length < 1) {
|
||||||
|
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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user