Skip to content

Commit

Permalink
Merge branch 'preview'
Browse files Browse the repository at this point in the history
  • Loading branch information
pdelfan committed Feb 25, 2024
2 parents 7830c6f + 7b418a6 commit 108cb81
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions src/containers/settings/settingsContainer/SettingsContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down Expand Up @@ -68,12 +68,14 @@ export default async function SettingsContainer() {
</section>
)}

<section>
<h3 className="mx-3 mb-2 text-xl font-semibold md:mx-0">
Invite Codes
</h3>
<InviteCodes codes={inviteCodes} />
</section>
{inviteCodes && (
<section>
<h3 className="mx-3 mb-2 text-xl font-semibold md:mx-0">
Invite Codes
</h3>
<InviteCodes codes={inviteCodes} />
</section>
)}

<section>
<h3 className="mx-3 mb-2 text-xl font-semibold md:mx-0">
Expand Down

0 comments on commit 108cb81

Please sign in to comment.