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(
session?.user,
image,
sponsors.map((sponsor: any) => sponsor.avatar === image)
sponsors.map((sponsor: any) => sponsor.avatar)
)
return {
props: {
isOwner: session?.user?.email === 'steveruizok@gmail.com',
isSponsor: sponsor !== undefined,
isSponsor: sponsor,
ssrSession: session,
},
}