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 authored and GitHub committed 2021-04-09 13:03:51 +01:00
commit 781060e5c6
1 file changed
+6
+6
View File
@@ -57,6 +57,12 @@ export async function getServerSideProps(context) {
}
});
if (!user) {
return {
notFound: true,
}
}
return {
props: {
user