@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user