Skip to content

Commit

Permalink
add log to monitor priceId and ticketId in CheckoutInformation, Check…
Browse files Browse the repository at this point in the history
…outInformationScreen, and CheckoutScreen
  • Loading branch information
Ratchet7x5 committed Dec 13, 2024
1 parent cddd59e commit 0b740c6
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
5 changes: 4 additions & 1 deletion web/src/components/forms/CheckoutInformation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,10 @@ export default function CheckoutInformation({
if (response.status === 200) {
// Form Submission Successful
setSubmitLoading(false);
console.log(response.data.updateUserInfoOrNewUser.userTicketId);
console.log(
"CheckoutInformation",
response.data.updateUserInfoOrNewUser.userTicketId
);
// Move user to payment screen after the user ticket id is received
navigateToPaymentScreen(
response.data.updateUserInfoOrNewUser.userTicketId
Expand Down
8 changes: 8 additions & 0 deletions web/src/screens/CheckoutInformationScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,14 @@ export default function CheckoutInformationScreen() {
try {
priceId = location.state.data.priceId;
ticketId = location.state.data.ticketId;
console.log(
"CheckoutInformationScreen: location.priceId" +
location.state.data.priceId
);
console.log(
"CheckoutInformationScreen: location.ticketId" +
location.state.data.ticketId
);
} catch {
return <CheckoutError />;
}
Expand Down
7 changes: 7 additions & 0 deletions web/src/screens/CheckoutScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,13 @@ export default function CheckoutScreen() {
priceId: location.state.data.priceId,
userTicketId: location.state.data.userTicketId,
};

console.log(
"CheckoutScreen: location.priceId" + location.state.data.priceId
);
console.log(
"CheckoutScreen: location.ticketId" + location.state.data.ticketId
);
} catch {
return <CheckoutError />;
}
Expand Down

0 comments on commit 0b740c6

Please sign in to comment.