more
This commit is contained in:
@@ -109,20 +109,28 @@ const SignupPage = () => {
|
|||||||
if (isBusy) {
|
if (isBusy) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
/*
|
|
||||||
const dataValues = validateData();
|
const dataValues = validateData();
|
||||||
if (dataValues === null) {
|
if (dataValues === null) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
setShowPaymentModal(true);
|
setShowPaymentModal(true);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
async function handleStripeAuthorization() {}
|
||||||
|
|
||||||
const handleSignUp = async (e) => {
|
const handleSignUp = async (e) => {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
|
const paymentDataValues = validatePaymentData();
|
||||||
|
if (paymentDataValues === null) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
const dataValues = validateData();
|
const dataValues = validateData();
|
||||||
|
if (dataValues === null) {
|
||||||
//const paymentSuccess = handleStripeAuthorization(paymentData)
|
return;
|
||||||
|
}
|
||||||
|
//const paymentSuccess = handleStripeAuthorization(paymentDataValues)
|
||||||
setIsBusy(true);
|
setIsBusy(true);
|
||||||
try {
|
try {
|
||||||
const userCredential = await createUserWithEmailAndPassword(
|
const userCredential = await createUserWithEmailAndPassword(
|
||||||
|
|||||||
Reference in New Issue
Block a user