Skip to content

Commit 5e9f241

Browse files
committed
Removed console logs
1 parent 61cb4a7 commit 5e9f241

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

apps/webapp/app/routes/resources.orgs.$organizationSlug.select-plan.tsx

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -58,25 +58,13 @@ const schema = z.object({
5858
});
5959

6060
export async function action({ request, params }: ActionFunctionArgs) {
61-
console.log("Action function called");
6261
if (request.method.toLowerCase() !== "post") {
6362
return new Response("Method not allowed", { status: 405 });
6463
}
6564

6665
const { organizationSlug } = Params.parse(params);
67-
6866
const user = await requireUser(request);
69-
7067
const formData = await request.formData();
71-
72-
console.log("All form data:", Object.fromEntries(formData));
73-
74-
// Log the entire formData
75-
console.log("Form Data:");
76-
for (const [key, value] of formData.entries()) {
77-
console.log(`${key}: ${value}`);
78-
}
79-
8068
const reasons = formData.getAll("reasons");
8169
const message = formData.get("message");
8270

@@ -98,10 +86,8 @@ export async function action({ request, params }: ActionFunctionArgs) {
9886

9987
switch (form.type) {
10088
case "free": {
101-
console.log("Entering free case");
10289
try {
10390
if (!env.PLAIN_API_KEY) {
104-
console.error("PLAIN_API_KEY is not set");
10591
throw new Error("PLAIN_API_KEY is not set");
10692
}
10793

0 commit comments

Comments
 (0)