From 7b418a6cc4e44cd3b5cb80d72ab9cf47d42914ee Mon Sep 17 00:00:00 2001 From: Pouria Delfanazari Date: Sun, 25 Feb 2024 13:52:20 -0800 Subject: [PATCH] Update SettingsContainer.tsx --- .../settingsContainer/SettingsContainer.tsx | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/src/containers/settings/settingsContainer/SettingsContainer.tsx b/src/containers/settings/settingsContainer/SettingsContainer.tsx index 65b49ad1..0354e711 100644 --- a/src/containers/settings/settingsContainer/SettingsContainer.tsx +++ b/src/containers/settings/settingsContainer/SettingsContainer.tsx @@ -21,7 +21,7 @@ import InviteCodes from "./InviteCodes"; export default async function SettingsContainer() { const session = await getSessionFromServer(); const profile = await getProfile(session?.user.handle); - const isEmailConfirmed = session?.user.emailConfirmed; + const isEmailConfirmed = session?.user.emailConfirmed ?? false; const inviteCodes = await getInviteCodes(); return ( @@ -68,12 +68,14 @@ export default async function SettingsContainer() { )} -
-

- Invite Codes -

- -
+ {inviteCodes && ( +
+

+ Invite Codes +

+ +
+ )}