From 980dfcc0dc37c8b925d9c26c6abe2d92e0dd88b2 Mon Sep 17 00:00:00 2001 From: Ratchet7x5 <36789694+Ratchet7x5@users.noreply.github.com> Date: Sun, 15 Dec 2024 22:50:02 +1300 Subject: [PATCH] remove clg statements --- api/controller/stripeController.ts | 5 ----- web/src/components/forms/CheckoutInformation.tsx | 4 ---- web/src/main.tsx | 7 ------- web/src/screens/CheckoutScreen.tsx | 7 ------- 4 files changed, 23 deletions(-) diff --git a/api/controller/stripeController.ts b/api/controller/stripeController.ts index 8d20848..b2a6876 100644 --- a/api/controller/stripeController.ts +++ b/api/controller/stripeController.ts @@ -31,11 +31,6 @@ export const createCheckout = asyncHandler( email = undefined; } - let checkPriceId = priceId === undefined || priceId === ""; - console.log( - "createCheckout: is priceId undefined or empty: ", - checkPriceId - ); // if priceId is undefined, send a 404 back. if (priceId === undefined || priceId === "") { return res diff --git a/web/src/components/forms/CheckoutInformation.tsx b/web/src/components/forms/CheckoutInformation.tsx index fe13465..bae9e65 100644 --- a/web/src/components/forms/CheckoutInformation.tsx +++ b/web/src/components/forms/CheckoutInformation.tsx @@ -72,10 +72,6 @@ export default function CheckoutInformation({ if (response.status === 200) { // Form Submission Successful setSubmitLoading(false); - console.log( - "CheckoutInformation", - response.data.updateUserInfoOrNewUser.userTicketId - ); // Move user to payment screen after the user ticket id is received navigateToPaymentScreen( response.data.updateUserInfoOrNewUser.userTicketId diff --git a/web/src/main.tsx b/web/src/main.tsx index 4c2fa0a..349ac76 100644 --- a/web/src/main.tsx +++ b/web/src/main.tsx @@ -40,13 +40,6 @@ import EventAttendanceSelectScreen from "./screens/EventAttendanceSelectScreen.t import { ExecRoute } from "@utils/AdminRouteProtection.tsx"; import { getUserMetadaData } from "./api/apiRequests.ts"; -console.log(`Frontend env vars : - VITE_API_URL=${import.meta.env.VITE_API_URL} - VITE_STRAPI_URL=${import.meta.env.VITE_STRAPI_URL}, - VITE_APP_URL=${import.meta.env.VITE_APP_URL}, - VITE_APP_NAME=${import.meta.env.VITE_APP_NAME}, - VITE_STRIPE_PUBLISHABLE_KEY=${import.meta.env.VITE_STRIPE_PUBLISHABLE_KEY},`); - //supertokens code SuperTokens.init({ appInfo: { diff --git a/web/src/screens/CheckoutScreen.tsx b/web/src/screens/CheckoutScreen.tsx index 5f75f7b..7c2581c 100644 --- a/web/src/screens/CheckoutScreen.tsx +++ b/web/src/screens/CheckoutScreen.tsx @@ -22,13 +22,6 @@ 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 ; }