Skip to content

Commit

Permalink
Apply Prettier Formatting Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
bhavberi authored and github-actions[bot] committed Dec 10, 2024
1 parent 711447f commit f809954
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/app/profile/[id]/edit/page.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export default async function EditProfile({ params }) {
userInput: {
uid: id,
},
}
},
);
const user = { ...userMeta, ...userProfile };

Expand Down
8 changes: 4 additions & 4 deletions src/app/profile/[id]/page.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export async function generateMetadata({ params }) {
userInput: {
uid: id,
},
}
},
);
const user = { ...userMeta, ...userProfile };

Expand Down Expand Up @@ -55,7 +55,7 @@ export default async function Profile({ params }) {
userInput: {
uid: id,
},
}
},
);
const user = { ...userMeta, ...userProfile };

Expand All @@ -64,7 +64,7 @@ export default async function Profile({ params }) {
if (user?.role === "club") {
const { data: { club: targetClub } = {} } = await getClient().query(
GET_CLUB,
{ clubInput: { cid: user.uid } }
{ clubInput: { cid: user.uid } },
);
club = targetClub;
}
Expand All @@ -81,7 +81,7 @@ export default async function Profile({ params }) {
// get list of memberRoles.roles along with member.cid
memberships = memberRoles.reduce(
(cv, m) => cv.concat(m.roles.map((r) => ({ ...r, cid: m.cid }))),
[]
[],
);

if (memberships?.length === 0 && currentUser?.uid !== user.uid) {
Expand Down
5 changes: 4 additions & 1 deletion src/components/members/MemberCard.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,10 @@ export default async function MemberCard({ uid, poc, roles }) {
}

// Edge case for profile redirecting 404 for faculty/staff in supervisory-bodies section
const clickable = user?.role !== "public" || user?.email.includes("student") || user?.email.includes("research");
const clickable =
user?.role !== "public" ||
user?.email.includes("student") ||
user?.email.includes("research");

return (
<Card
Expand Down

0 comments on commit f809954

Please sign in to comment.