Skip to content

Commit

Permalink
Merge pull request #136 from HackAtUCI/feature/hacking-periods
Browse files Browse the repository at this point in the history
feat: add conditional to condense times
  • Loading branch information
samderanova authored Nov 4, 2023
2 parents 694f715 + 847d612 commit 0bba8ee
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -135,10 +135,12 @@ const ClipboardSchedule: React.FC<ClipboardScheduleProps> = ({ schedule }) => {
<Col lg className={styles.mobileLocation}>
<span>
{location},{" "}
{dateTimeFormat.formatRange(
startTimeZoned,
endTimeZoned,
)}
{startTimeZoned === endTimeZoned
? dateTimeFormat.format(startTimeZoned)
: dateTimeFormat.formatRange(
startTimeZoned,
endTimeZoned,
)}
</span>
</Col>
</Row>
Expand Down

0 comments on commit 0bba8ee

Please sign in to comment.