Skip to content

Commit

Permalink
chore: remove comments
Browse files Browse the repository at this point in the history
  • Loading branch information
gmat224 committed Dec 22, 2024
1 parent 8b3fcb6 commit 3746572
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 24 deletions.
12 changes: 1 addition & 11 deletions web/src/components/forms/CheckoutInformation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -105,24 +105,14 @@ export default function CheckoutInformation({
});

// Mutation hook

mutateAsync({
ticketId: ticketId,
name: name,
email: email,
phoneNumber: phoneNumber,
answers: answerList,
});
// const temp = await mutateAsync(data)
// call post request
// onSubmit({
// // ticketId: ticketId,
// name: name,
// email: email,
// phoneNumber: phoneNumber,
// answers: answerList,
// });
// mutateAsync()

};

// Loading
Expand Down
13 changes: 0 additions & 13 deletions web/src/screens/CheckoutScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ export default function CheckoutScreen() {
bodyData = {
priceId: location.state.data.priceId,
userTicketId: location.state.data.userTicketId,
// priceId: "asdfa"
};
} catch {
return <CheckoutError />;
Expand All @@ -36,18 +35,6 @@ export default function CheckoutScreen() {
mutateAsync(bodyData);
}, []);

console.log(data?.clientSecret);

console.log(status);
// // Stripe payments
// const fetchClientSecret = useCallback(async () => {
// // Create a Checkout Session
// return await fetchEventOrMembershipCheckoutSecret(bodyData);
// }, []);

// can be null to options.clientSecret or options.fetchClientSecret if you are performing an initial server-side render or when generating a static site.
// const options = { fetchClientSecret };

if (status === "pending") {
return <LoadingSpinner />;
}
Expand Down

0 comments on commit 3746572

Please sign in to comment.