Merge pull request #2 from emrysal/main

When navigating to a calendso user that does not exist, return notFound.
This commit is contained in:
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

View File

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