Skip to content

Commit 3d724ae

Browse files
committed
revert debugging
1 parent ba478cb commit 3d724ae

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

frontend/server.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,6 @@ app.use("*", async (req, res) => {
9797
return res.status(200).end(html);
9898
} catch (error) {
9999
if (error instanceof Response) {
100-
console.log('ERROR:', error);
101100
if (error.status >= 300 && error.status < 400) {
102101
return res.redirect(error.status, error.headers.get("Location") || "/");
103102
} else {

frontend/src/router.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -350,8 +350,7 @@ export const router: RouteObject[] = [
350350
} catch (error: any) {
351351
// for 404s we want to return null so that the 404 page is shown
352352
if (error?.response?.status === 404) {
353-
// console.error("Event not found", error);
354-
// return {event: null, promoCodeValid: undefined, promoCode: null};
353+
return {event: null, promoCodeValid: undefined, promoCode: null};
355354
}
356355

357356
console.error(error);

0 commit comments

Comments
 (0)