Skip to content
This repository has been archived by the owner on Nov 14, 2022. It is now read-only.

Commit

Permalink
Remove duplicated conditionals in EventPreview
Browse files Browse the repository at this point in the history
Fixes #668
  • Loading branch information
maiertech committed Dec 24, 2020
1 parent 012cd50 commit 60c2a65
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/curvy-ravens-appear.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@undataforum/components': patch
---

Remove duplicate conditionals in EventPreview
4 changes: 2 additions & 2 deletions packages/components/src/event-preview.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const EventPreview = ({ event, ...props }) => (
</Box>
)}
{event.title}
{event.speakers && event.speakers}
{event.speakers}
<Text
as="time"
sx={{
Expand All @@ -36,7 +36,7 @@ const EventPreview = ({ event, ...props }) => (
>
{event.date}
</Text>
{event.description && event.description}
{event.description}
{(event.href || event.registrationLink) && (
<Flex
sx={{
Expand Down

1 comment on commit 60c2a65

@vercel
Copy link

@vercel vercel bot commented on 60c2a65 Dec 24, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.