Skip to content

Commit

Permalink
Fix recent attendance bug
Browse files Browse the repository at this point in the history
  • Loading branch information
raymosun committed Jan 19, 2024
1 parent 25f6583 commit ecfe151
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/u/[handle].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ const getServerSidePropsFunc: GetServerSideProps = async ({ params, req, res })
const isSignedInUser = handleUser.uuid === user.uuid;

let attendances = null;
if (!handleUser.isAttendancePublic || isSignedInUser)
if (!isSignedInUser && handleUser.isAttendancePublic)
attendances = (await UserAPI.getAttendancesForUserByUUID(token, user.uuid)).slice(0, 10);

// render UserProfilePage
Expand Down

0 comments on commit ecfe151

Please sign in to comment.