Update auth-test.tsx

This commit is contained in:
Steve Ruiz 2021-06-19 20:08:47 +01:00
parent d749b1088b
commit 9bb680bfbf

View file

@ -62,13 +62,13 @@ export async function getServerSideProps(context: GetServerSidePropsContext) {
console.log( console.log(
session?.user, session?.user,
image, image,
sponsors.map((sponsor: any) => sponsor.avatar === image) sponsors.map((sponsor: any) => sponsor.avatar)
) )
return { return {
props: { props: {
isOwner: session?.user?.email === 'steveruizok@gmail.com', isOwner: session?.user?.email === 'steveruizok@gmail.com',
isSponsor: sponsor !== undefined, isSponsor: sponsor,
ssrSession: session, ssrSession: session,
}, },
} }