Skip to content

Commit

Permalink
fix: not showing date when there is no event
Browse files Browse the repository at this point in the history
  • Loading branch information
rishabhkunwar11 committed Jan 5, 2022
1 parent 70705ed commit 93cc494
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion component/layout/SectionEvents/SectionEvents.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export default function SectionEvents({ events }) {
<h3>
<span>{events?.title}</span>
</h3>
<p>{moment(events?.event_time).format("MMMM Do YYYY, h:mm a")}</p>
<p>{events?.event_time && moment(events?.event_time).format("MMMM Do YYYY, h:mm a")}</p>
</figcaption>
</figure>
</div>
Expand Down

0 comments on commit 93cc494

Please sign in to comment.