This commit is contained in:
Kenneth Jannette
2024-01-19 15:23:21 -06:00
parent e3db6a3eb3
commit 1608569908
2 changed files with 9 additions and 5 deletions

View File

@@ -78,7 +78,7 @@ const PaymentModal = ({
<Button <Button
disabled={isBusy} disabled={isBusy}
className="primary-button" className="primary-button"
onClick={onConfirm} onClick={handleSignup}
labelText={buttonLabelText} labelText={buttonLabelText}
/> />
</Modal.Footer> </Modal.Footer>

View File

@@ -106,14 +106,13 @@ const SignupPage = () => {
} }
const handleSignup = async (e) => { const handleSignup = async (e) => {
console.log("handleSignup");
/*
e.preventDefault(); e.preventDefault();
if (isBusy) { if (isBusy) {
return; return;
} }
const dataValues = validateData();
if (dataValues === null) {
return;
}
setIsBusy(true); setIsBusy(true);
try { try {
const userCredential = await createUserWithEmailAndPassword( const userCredential = await createUserWithEmailAndPassword(
@@ -130,9 +129,14 @@ const SignupPage = () => {
error.message || "Sorry, something went wrong. Please try again." error.message || "Sorry, something went wrong. Please try again."
); );
} }
*/
}; };
const handleProceed = () => { const handleProceed = () => {
const dataValues = validateData();
if (dataValues === null) {
return;
}
setShowPaymentModal(true); setShowPaymentModal(true);
}; };