Update auth-test.tsx

This commit is contained in:
Steve Ruiz 2021-06-19 19:17:51 +01:00
parent 6729435696
commit 82a1306013

View file

@ -64,6 +64,12 @@ export async function getServerSideProps(context: GetServerSidePropsContext) {
(sponsor: { avatar: string }) => sponsor.avatar === session.user.image (sponsor: { avatar: string }) => sponsor.avatar === session.user.image
) )
console.log(
session?.user?.image,
sponsors.map((sponsor) => sponsor.avatar),
sponsor
)
isSponsor = sponsor !== undefined isSponsor = sponsor !== undefined
} }