Put mdash in a fragment

This commit is contained in:
ponas committed 2019-05-15 08:12:25 +02:00
1 parent 8e1d37be93
commit 6fefef25c1
1 file changed
+1 -1
+1 -1
View File
@@ -75,7 +75,7 @@ export const EventTemplate = ({
<div className="event-time">
{/* TODO: make the API stop assuming event duration is 2 hours when unspecified? */}
kl. {moment(startTime).format('HH:mm')}
{endTime && '&mdash;' + moment(endTime).format('HH:mm')}
{endTime && <>&mdash;{moment(endTime).format('HH:mm')}</>}
</div>
<div className="price">
Pris: {formatPrices(priceRegular, priceStudent)}