Merge pull request #2 from emrysal/main

When navigating to a calendso user that does not exist, return notFound.
pull/3/head
Bailey Pumfleet 2021-04-09 13:03:51 +01:00 committed by GitHub
commit 781060e5c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -57,6 +57,12 @@ export async function getServerSideProps(context) {
} }
}); });
if (!user) {
return {
notFound: true,
}
}
return { return {
props: { props: {
user user