mirror of
https://github.com/MAGICGrants/campaign-site.git
synced 2026-01-09 12:27:59 -05:00
Merge pull request #128 from MAGICGrants/auth-pages-fix
fix(auth pages): return empty props to prevent error
This commit is contained in:
@@ -95,4 +95,6 @@ export async function getServerSideProps({ params, req, res }: GetServerSideProp
|
||||
if (session) {
|
||||
return { redirect: { destination: `/${params?.fund!}` } }
|
||||
}
|
||||
|
||||
return { props: {} }
|
||||
}
|
||||
|
||||
@@ -171,4 +171,6 @@ export async function getServerSideProps({ params, req, res }: GetServerSideProp
|
||||
if (session) {
|
||||
return { redirect: { destination: `/${params?.fund!}` } }
|
||||
}
|
||||
|
||||
return { props: {} }
|
||||
}
|
||||
|
||||
@@ -565,4 +565,6 @@ export async function getServerSideProps({ params, req, res }: GetServerSideProp
|
||||
if (session) {
|
||||
return { redirect: { destination: `/${params?.fund!}` } }
|
||||
}
|
||||
|
||||
return { props: {} }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user