Merge pull request #128 from MAGICGrants/auth-pages-fix

fix(auth pages): return empty props to prevent error
This commit is contained in:
Artur
2025-01-07 17:32:35 -03:00
committed by GitHub
3 changed files with 6 additions and 0 deletions

View File

@@ -95,4 +95,6 @@ export async function getServerSideProps({ params, req, res }: GetServerSideProp
if (session) {
return { redirect: { destination: `/${params?.fund!}` } }
}
return { props: {} }
}

View File

@@ -171,4 +171,6 @@ export async function getServerSideProps({ params, req, res }: GetServerSideProp
if (session) {
return { redirect: { destination: `/${params?.fund!}` } }
}
return { props: {} }
}

View File

@@ -565,4 +565,6 @@ export async function getServerSideProps({ params, req, res }: GetServerSideProp
if (session) {
return { redirect: { destination: `/${params?.fund!}` } }
}
return { props: {} }
}