Apply suggestions from code review

This commit is contained in:
Omar López
2022-05-16 12:36:26 -06:00
committed by GitHub
parent f75917d9c4
commit 3421af10a9
2 changed files with 1 additions and 2 deletions
@@ -85,7 +85,7 @@ export const getStaticProps = async (context: GetStaticPropsContext) => {
return {
props: {
apps: apps,
apps,
},
};
};
-1
View File
@@ -641,7 +641,6 @@ export async function getServerSideProps(context: GetServerSidePropsContext) {
const dynamicEventName = asStringOrNull(context.query.eventName) ?? "";
if (typeof context.query.bookingId !== "string") return { notFound: true } as const;
const bookingId = parseInt(context.query.bookingId);
//http://localhost:3000/success?date=2022-06-02T02%3A00%3A00-06%3A00&type=5&user=pro&name=Stripe%20Stripeson
if (isNaN(typeId)) {
return {