Parcourir la source

Update auth-test.tsx

main
Steve Ruiz il y a 4 ans
Parent
révision
76008bb8cd
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1
    1
      pages/auth-test.tsx

+ 1
- 1
pages/auth-test.tsx Voir le fichier

@@ -69,7 +69,7 @@ export async function getServerSideProps(context: GetServerSidePropsContext) {
69 69
 
70 70
   return {
71 71
     props: {
72
-      isOwner: session.user.email === 'steveruizok@gmail.com',
72
+      isOwner: session?.user?.email === 'steveruizok@gmail.com',
73 73
       isSponsor,
74 74
       ssrSession: session,
75 75
     },

Chargement…
Annuler
Enregistrer