Fix: Remove 0s from team page (#827)

* Remove 0s from team page

* damn it
pull/826/head^2
Bailey Pumfleet 2021-09-30 10:24:02 +01:00 committed by GitHub
parent a04336ba06
commit 033c4835f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -68,7 +68,7 @@ const Team = ({ team }) => {
return (
<div>
<Members members={team.members} />
{team.eventTypes.length && (
{team.eventTypes.length > 0 && (
<aside className="text-center dark:text-white mt-8">
<Button color="secondary" href={`/team/${team.slug}`} shallow={true} StartIcon={ArrowLeftIcon}>
Go back

View File

@ -65,7 +65,7 @@ function TeamPage({ team }: inferSSRProps<typeof getServerSideProps>) {
<Text variant="headline">{teamName}</Text>
</div>
{(showMembers.isOn || !team.eventTypes.length) && <Team team={team} />}
{!showMembers.isOn && team.eventTypes.length && (
{!showMembers.isOn && team.eventTypes.length > 0 && (
<div className="mx-auto max-w-3xl">
{eventTypes}