Skip to content

Commit

Permalink
dont display self
Browse files Browse the repository at this point in the history
  • Loading branch information
DoraQi committed Oct 2, 2022
1 parent d72140f commit b514ba4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ const Home: NextPage = (props) => {

<InterestCarousel tags={fakeHobbies} alltags={allHobbies} />
<Spacer y={1} />
<ProfileCarousel profiles={props.allUsers.map((userProfile) => <ProfileCard info={userProfile} />)} />
<ProfileCarousel profiles={props.allUsers.filter((userProfile) => userProfile.email !== user.email).map((userProfile) => <ProfileCard info={userProfile} />)} />
<Spacer y={1} />
<EventCarousel events={[a, b, a, a, b]} allTags={allHobbies} />
<Spacer y={1} />
Expand Down

0 comments on commit b514ba4

Please sign in to comment.